diff options
author | Fritz Elfert <felfert@to.com> | 2003-02-03 00:56:52 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2003-02-03 00:56:52 +0000 |
commit | 601a6d955f3958875599796d5745b2780f7a6bfe (patch) | |
tree | f6cad153e3c6a7c4233bb1ee03efc36a0b0b4aac /lib | |
parent | a079c96a8617250e437cfe4cae106dca58bbbcb0 (diff) | |
download | plptools-601a6d955f3958875599796d5745b2780f7a6bfe.tar.gz plptools-601a6d955f3958875599796d5745b2780f7a6bfe.tar.bz2 plptools-601a6d955f3958875599796d5745b2780f7a6bfe.zip |
- Fixed 4 more possible formatstring exploits.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -37,7 +37,7 @@ int logbuf::overflow(int c) { *ptr++ = '\n'; *ptr = '\0'; if (_on) - syslog(_level, buf); + syslog(_level, "%s", buf); else if (_fd != -1) write(_fd, buf, len + 1); ptr = buf; |