summaryrefslogtreecommitdiff
path: root/extra/sysklogd/sysklogd-debian.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sysklogd/sysklogd-debian.patch')
-rw-r--r--extra/sysklogd/sysklogd-debian.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/sysklogd/sysklogd-debian.patch b/extra/sysklogd/sysklogd-debian.patch
new file mode 100644
index 000000000..0117af5f2
--- /dev/null
+++ b/extra/sysklogd/sysklogd-debian.patch
@@ -0,0 +1,21 @@
+--- sysklogd-1.5.orig/syslogd.c
++++ sysklogd-1.5/syslogd.c
+@@ -2392,7 +2392,7 @@
+ if (*p == '\0' || *p == '#')
+ continue;
+ #if CONT_LINE
+- strcpy(cline, p);
++ memmove(cline, p, strlen(p)+1);
+ #endif
+ for (p = strchr(cline, '\0'); isspace(*--p););
+ #if CONT_LINE
+--- sysklogd-1.5.orig/ksym_mod.c
++++ sysklogd-1.5/ksym_mod.c
+@@ -189,7 +189,6 @@
+ else
+ Syslog(LOG_ERR, "Error loading kernel symbols " \
+ "- %s\n", strerror(errno));
+- fclose(ksyms);
+ return(0);
+ }
+