X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Flog.c;h=02208c65d518f574bd2987ec504af70909a1b077;hp=b094d4941fcfec8773baa9b45b6e6437eec3edf4;hb=cdb24b629ee2962b8d02cd7d0cf5d11a9b9bd59f;hpb=49edb2f365c78df40996baf53a984d8674978223 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; } }