summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:47:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:47:38 +0200
commit062da3696d295e903d2e3e97d225c6794653b597 (patch)
treea668e83b0b7cbcb31015dc6e966da107c57640bd /src/intrf.c
parent47e322c3a82061300f833002edf1858472a9c661 (diff)
Don't forget the string format when logging an error, patch from Pascal Terjan
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrf.c b/src/intrf.c
index f646757..0974fdb 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -248,7 +248,7 @@ unsigned long long int ask_number_cli(char **current_cmd, const unsigned long lo
va_list ap;
va_start(ap,_format);
vsnprintf(res,sizeof(res),_format,ap);
- log_error(res);
+ log_error("%s", res);
if(val_min!=val_max)
log_error("(%llu-%llu) :",val_min,val_max);
log_error("Invalid value\n");