From: Adam Dickmeiss Date: Fri, 9 Jan 2009 10:40:59 +0000 (+0100) Subject: Fixed dangerious use of sprintf X-Git-Tag: v2.0.36~13 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=feee4a7d1b539d294ab52ffb51200850f08be52f Fixed dangerious use of sprintf --- diff --git a/index/zebrash.c b/index/zebrash.c index 39b71cc..7f827b2 100644 --- a/index/zebrash.c +++ b/index/zebrash.c @@ -263,7 +263,7 @@ static int cmd_logf( char *args[], WRBUF outbuff) i=2; else lev=YLOG_LOG; /* this is in the default set!*/ - yaz_log( lev, restargs(args,i)); + yaz_log( lev, "%s", restargs(args,i)); return 0; /* ok */ }