summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-04 16:50:22 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-09-04 16:50:22 +0000
commit45a021a18b5ea1b677e520603cf9c14a844391a1 (patch)
treeba7f80251701c943c450fd498f12c961b8425987 /src
parentaac5f60602abb4b7e614ad30cc363d69f890832a (diff)
downloadtinyproxy-45a021a18b5ea1b677e520603cf9c14a844391a1.tar.gz
tinyproxy-45a021a18b5ea1b677e520603cf9c14a844391a1.zip
Fixed a format string bug with the syslog function.
Diffstat (limited to 'src')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index be69f9a..e907881 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,4 +1,4 @@
-/* $Id: log.c,v 1.13 2001-08-29 03:59:12 rjkaes Exp $
+/* $Id: log.c,v 1.14 2001-09-04 16:50:22 rjkaes Exp $
*
* Logs the various messages which tinyproxy produces to either a log file or
* the syslog daemon. Not much to it...
@@ -93,7 +93,7 @@ void log_message(short int level, char *fmt, ...)
vsyslog(level, fmt, args);
# else
vsnprintf(str, STRING_LENGTH, fmt, args);
- syslog(level, str);
+ syslog(level, "%s", str);
# endif
} else {
#endif