projects
/
infodrom
/
sysklogd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f96fd5e
)
Properly use format strings
author
Joey Schulze
<joey@infodrom.org>
Mon, 18 Sep 2006 09:56:13 +0000
(09:56 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 18 Sep 2006 09:56:13 +0000
(09:56 +0000)
syslog_tst.c
patch
|
blob
|
history
diff --git
a/syslog_tst.c
b/syslog_tst.c
index
ca78601
..
56e2d81
100644
(file)
--- a/
syslog_tst.c
+++ b/
syslog_tst.c
@@
-42,7
+42,7
@@
int main(int argc, char *argv[])
if ( (nl = strrchr(bufr, '\n')) != \
(char *) 0)
*nl = '\0';
- syslog(LOG_INFO, bufr);
+ syslog(LOG_INFO,
"%s",
bufr);
logged += strlen(bufr);
if ( logged > 1024 )
{
@@
-54,7
+54,7
@@
int main(int argc, char *argv[])
}
else
while (argc-- > 1)
- syslog(LOG_INFO, argv++[1]);
+ syslog(LOG_INFO,
"%s",
argv++[1]);
}
else
{