projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9d6d82c
)
r62: close possible format string attack
author
yoe <yoe>
Sun, 16 May 2004 20:21:35 +0000
(20:21 +0000)
committer
yoe <yoe>
Sun, 16 May 2004 20:21:35 +0000
(20:21 +0000)
cliserv.h
patch
|
blob
|
history
diff --git
a/cliserv.h
b/cliserv.h
index
5d6dc48
..
ebcb036
100644
(file)
--- a/
cliserv.h
+++ b/
cliserv.h
@@
-97,7
+97,7
@@
void err(const char *s)
s1[maxlen-1] = '\0';
#ifdef ISSERVER
s1[maxlen-1] = '\0';
#ifdef ISSERVER
- syslog(LOG_ERR, s1);
+ syslog(LOG_ERR, "%s", s1);
#else
fprintf(stderr, "Error: %s\n", s1);
#endif
#else
fprintf(stderr, "Error: %s\n", s1);
#endif