syslog() string format hole.
http://www.securityfocus.com/templates/archive.pike?start=2000-09-24&fromthread=0&mid=85023&list=1&end=2000-09-30&threads=0&
This commit is contained in:
parent
c2abf9c643
commit
c8b98b814c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: printjob.c,v 1.23 2000/08/24 02:03:54 itohy Exp $ */
|
||||
/* $NetBSD: printjob.c,v 1.24 2000/09/26 17:44:38 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -45,7 +45,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)printjob.c 8.7 (Berkeley) 5/10/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: printjob.c,v 1.23 2000/08/24 02:03:54 itohy Exp $");
|
||||
__RCSID("$NetBSD: printjob.c,v 1.24 2000/09/26 17:44:38 itojun Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1255,7 +1255,7 @@ init()
|
||||
(void)snprintf(&pxlength[2], sizeof(pxlength) - 2, "%ld", PY);
|
||||
cgetstr(bp, "rm", &RM);
|
||||
if ((s = checkremote()) != NULL)
|
||||
syslog(LOG_WARNING, s);
|
||||
syslog(LOG_WARNING, "%s", s);
|
||||
|
||||
cgetstr(bp, "af", &AF);
|
||||
cgetstr(bp, "of", &OF);
|
||||
|
Loading…
Reference in New Issue
Block a user