blob: 7e9a294fee11c8d35ec08686579ffad86354edca [file] [log] [blame]
Peter Korsgaarde888cd42009-03-05 15:30:57 +00001[PATCH] replace susv3 legacy functions with modern equivalents
2
3Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
4---
5 syslog.c | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8Index: sysklogd-1.4.1/syslog.c
9===================================================================
10--- sysklogd-1.4.1.orig/syslog.c
11+++ sysklogd-1.4.1/syslog.c
12@@ -178,7 +178,7 @@
13 return;
14 (void)strcat(tbuf, "\r\n");
15 cnt += 2;
16- p = index(tbuf, '>') + 1;
17+ p = strchr(tbuf, '>') + 1;
18 (void)write(fd, p, cnt - (p - tbuf));
19 (void)close(fd);
20 }