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