sysklogd: fix build
[avatt.git] / package / sysklogd / sysklogd-susv3-legacy.patch
blob7e9a294fee11c8d35ec08686579ffad86354edca
1 [PATCH] replace susv3 legacy functions with modern equivalents
3 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
4 ---
5 syslog.c | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
8 Index: 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);