Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdccsu3.UUCP Path: utzoo!watmath!clyde!floyd!harpo!decvax!ittvax!dcdwest!sdcsvax!sdccsu3!rusty From: rusty@sdccsu3.UUCP Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: bug in syslog(3) Message-ID: <1637@sdccsu3.UUCP> Date: Wed, 7-Mar-84 17:06:27 EST Article-I.D.: sdccsu3.1637 Posted: Wed Mar 7 17:06:27 1984 Date-Received: Thu, 8-Mar-84 19:41:59 EST Organization: U.C. San Diego, Computer Center Lines: 24 there is a bug in syslog(3) that causes lines containing %C where C isn't 'm' to screw up. syslog(3) is null terminating the string incorrectly. diffs follow: *** /src/lib/libc/gen/syslog.c Mon Jun 27 15:06:44 1983 --- syslog.c Wed Mar 7 17:01:37 1984 *************** *** 70,76 } c = *f++; if (c != 'm') { ! *b++ = '%', *b++ = c, *b++ = '\0'; continue; } if ((unsigned)errno > sys_nerr) --- 70,76 ----- } c = *f++; if (c != 'm') { ! *b++ = '%', *b++ = c; continue; } if ((unsigned)errno > sys_nerr)