[BusyBox-cvs] CVS update of busybox/sysklogd (klogd.c)

Glenn McGrath bug1 at codepoet.org
Fri Aug 6 00:58:54 UTC 2004


    Date: Thursday, August 5, 2004 @ 18:58:54
  Author: bug1
    Path: /var/cvs/busybox/sysklogd

Modified: klogd.c (1.22 -> 1.23)

Part of patch from William Barsse, fixes a problem with unescaped %.


Index: busybox/sysklogd/klogd.c
diff -u busybox/sysklogd/klogd.c:1.22 busybox/sysklogd/klogd.c:1.23
--- busybox/sysklogd/klogd.c:1.22	Fri Jun 25 05:23:03 2004
+++ busybox/sysklogd/klogd.c	Thu Aug  5 18:58:53 2004
@@ -104,7 +104,7 @@
 			}
 			if (log_buffer[i] == '\n') {
 				log_buffer[i] = '\0';	/* zero terminate this message */
-				syslog(priority, start);
+				syslog(priority, "%s", start);
 				start = &log_buffer[i + 1];
 				priority = LOG_INFO;
 			}



More information about the busybox-cvs mailing list