diff options
| author | John Kohl <jtkohl@mit.edu> | 1990-10-29 14:19:38 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1990-10-29 14:19:38 +0000 |
| commit | 1cc4b91b2b1dab706f635a42854998ac6e47c71a (patch) | |
| tree | 19e9a014f2fc219ece8114f8b658e8592d55c42b /src | |
| parent | 4d426fdceb13a2f2e809e7e6681c2869a46b6dcd (diff) | |
use string.h
and strchr
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1360 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/posix/syslog.c | 4 |
1 files 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 <sys/syslog.h> #include <sys/wait.h> #include <netdb.h> -#include <strings.h> +#include <string.h> #include <stdio.h> #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); |
