X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Flog.c;h=ae323e950ebb2e7a08f2927d660577a8890512f3;hp=847baf729ab91ee7a0644d8898a64af1eaf000d5;hb=4d61c93845abce1e45c4a41562ecb3fa4e3bdcc3;hpb=b81b2c1954fe3e3317e6fa260c5ffdc9eeee966c diff --git a/src/log.c b/src/log.c index 847baf7..ae323e9 100644 --- a/src/log.c +++ b/src/log.c @@ -15,13 +15,14 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2008 Christian Pointner + * Copyright (C) 2007-2010 Christian Pointner * * 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; } }