X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Flog.c;h=02208c65d518f574bd2987ec504af70909a1b077;hp=b094d4941fcfec8773baa9b45b6e6437eec3edf4;hb=2ca04c970ea76d18da53fbbc2c7c7281797af79d;hpb=70cf739729db4c5d7f72b64207855889e57ee49a diff --git a/src/log.c b/src/log.c index b094d49..02208c6 100644 --- a/src/log.c +++ b/src/log.c @@ -265,7 +265,7 @@ void log_print_hex_dump(log_prio_t prio, const u_int8_t* buf, u_int32_t len) for(i=0; i < len; i++) { if(((i+1)*3) >= (MSG_LENGTH_MAX - offset)) break; - snprintf(ptr, 3, "%02X ", buf[i]); + snprintf(ptr, 4, "%02X ", buf[i]); ptr+=3; } }