mirror of https://github.com/wolfSSL/wolfssh.git
commit
f9aebbcd40
|
@ -173,7 +173,7 @@ void wolfSSH_Log(enum wolfSSH_LogLevel level, const char *const fmt, ...)
|
|||
|
||||
/* format msg */
|
||||
va_start(vlist, fmt);
|
||||
WVSNPRINTF(msgStr, sizeof(msgStr), fmt, vlist);
|
||||
WVSNPRINTF(msgStr, sizeof(msgStr)-1, fmt, vlist);
|
||||
va_end(vlist);
|
||||
|
||||
if (logFunction)
|
||||
|
|
|
@ -499,7 +499,7 @@ extern "C" {
|
|||
#define WSTRNCPY(s1,s2,n) strncpy_s((s1),(n),(s2),(n))
|
||||
#define WSTRNCASECMP(s1,s2,n) _strnicmp((s1),(s2),(n))
|
||||
#define WSNPRINTF(s,n,f,...) _snprintf_s((s),(n),_TRUNCATE,(f),##__VA_ARGS__)
|
||||
#define WVSNPRINTF(s,n,f,...) _vsnprintf_s((s),(n),(n),(f),##__VA_ARGS__)
|
||||
#define WVSNPRINTF(s,n,f,...) _vsnprintf_s((s),(n),_TRUNCATE,(f),##__VA_ARGS__)
|
||||
#define WSTRTOK(s1,s2,s3) strtok_s((s1),(s2),(s3))
|
||||
#elif defined(MICROCHIP_MPLAB_HARMONY) || defined(MICROCHIP_PIC32)
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue