aboutsummaryrefslogtreecommitdiffstats
path: root/plpprint/plpprintd.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2003-02-03 00:56:52 +0000
committerFritz Elfert <felfert@to.com>2003-02-03 00:56:52 +0000
commit601a6d955f3958875599796d5745b2780f7a6bfe (patch)
treef6cad153e3c6a7c4233bb1ee03efc36a0b0b4aac /plpprint/plpprintd.cc
parenta079c96a8617250e437cfe4cae106dca58bbbcb0 (diff)
downloadplptools-601a6d955f3958875599796d5745b2780f7a6bfe.tar.gz
plptools-601a6d955f3958875599796d5745b2780f7a6bfe.tar.bz2
plptools-601a6d955f3958875599796d5745b2780f7a6bfe.zip
- Fixed 4 more possible formatstring exploits.
Diffstat (limited to 'plpprint/plpprintd.cc')
-rw-r--r--plpprint/plpprintd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/plpprint/plpprintd.cc b/plpprint/plpprintd.cc
index e68525a..5898d64 100644
--- a/plpprint/plpprintd.cc
+++ b/plpprint/plpprintd.cc
@@ -91,7 +91,7 @@ debuglog(char *fmt, ...)
if (debug)
cout << buf << endl;
else
- syslog(LOG_DEBUG, buf);
+ syslog(LOG_DEBUG, "%s", buf);
free(buf);
return 0;
}
@@ -104,7 +104,7 @@ errorlog(char *fmt, ...)
if (debug)
cerr << buf << endl;
else
- syslog(LOG_ERR, buf);
+ syslog(LOG_ERR, "%s", buf);
free(buf);
return 0;
}
@@ -117,7 +117,7 @@ infolog(char *fmt, ...)
if (debug)
cout << buf << endl;
else
- syslog(LOG_INFO, buf);
+ syslog(LOG_INFO, "%s", buf);
free(buf);
return 0;
}