Fixed dangerious use of sprintf
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2009 10:40:59 +0000 (11:40 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2009 10:40:59 +0000 (11:40 +0100)
index/zebrash.c

index 39b71cc..7f827b2 100644 (file)
@@ -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 */
 }