summaryrefslogtreecommitdiffstats
path: root/package/sysklogd/sysklogd-susv3-legacy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/sysklogd/sysklogd-susv3-legacy.patch')
-rw-r--r--package/sysklogd/sysklogd-susv3-legacy.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/sysklogd/sysklogd-susv3-legacy.patch b/package/sysklogd/sysklogd-susv3-legacy.patch
new file mode 100644
index 0000000000..7e9a294fee
--- /dev/null
+++ b/package/sysklogd/sysklogd-susv3-legacy.patch
@@ -0,0 +1,20 @@
+[PATCH] replace susv3 legacy functions with modern equivalents
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ syslog.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: sysklogd-1.4.1/syslog.c
+===================================================================
+--- sysklogd-1.4.1.orig/syslog.c
++++ sysklogd-1.4.1/syslog.c
+@@ -178,7 +178,7 @@
+ return;
+ (void)strcat(tbuf, "\r\n");
+ cnt += 2;
+- p = index(tbuf, '>') + 1;
++ p = strchr(tbuf, '>') + 1;
+ (void)write(fd, p, cnt - (p - tbuf));
+ (void)close(fd);
+ }
OpenPOWER on IntegriCloud