From 1cc4b91b2b1dab706f635a42854998ac6e47c71a Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 29 Oct 1990 14:19:38 +0000 Subject: [PATCH] use string.h and strchr git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1360 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/posix/syslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/posix/syslog.c b/src/lib/krb5/posix/syslog.c index 2d8276d87..5f30fc47f 100644 --- a/src/lib/krb5/posix/syslog.c +++ b/src/lib/krb5/posix/syslog.c @@ -49,7 +49,7 @@ static char sccsid[] = "@(#)syslog.c 5.20 (Berkeley) 1/19/89"; #include #include #include -#include +#include #include #define LOGNAME "/dev/log" @@ -164,7 +164,7 @@ vsyslog(pri, fmt, ap) return; (void)alarm((u_int)0); (void)strcat(tbuf, "\r"); - p = index(tbuf, '>') + 1; + p = strchr(tbuf, '>') + 1; (void)write(fd, p, cnt + 1 - (p - tbuf)); (void)close(fd); _exit(0); -- 2.26.2