X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=door_daemon%2Flog.c;h=43a0a5a44dde21f7f0406f6240413b3d0628ff87;hp=847baf729ab91ee7a0644d8898a64af1eaf000d5;hb=4ee2501ff864b8e15202ee814e8bafcc0c2adf6c;hpb=6773f3ff20c2826dc0f32e4d20b73572769f6e40 diff --git a/door_daemon/log.c b/door_daemon/log.c index 847baf7..43a0a5a 100644 --- a/door_daemon/log.c +++ b/door_daemon/log.c @@ -20,8 +20,9 @@ * This file is part of uAnytun. * * uAnytun is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. * * uAnytun is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -250,7 +251,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; - sprintf(ptr, "%02X ", buf[i]); + snprintf(ptr, 3, "%02X ", buf[i]); ptr+=3; } }