aboutsummaryrefslogtreecommitdiff
path: root/net/qadsl/files/patch-src__log.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/qadsl/files/patch-src__log.c')
-rw-r--r--net/qadsl/files/patch-src__log.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/qadsl/files/patch-src__log.c b/net/qadsl/files/patch-src__log.c
new file mode 100644
index 000000000000..face4f2bb455
--- /dev/null
+++ b/net/qadsl/files/patch-src__log.c
@@ -0,0 +1,38 @@
+*** src/log.c.orig Thu Jun 10 21:11:46 2004
+--- src/log.c Sat Sep 11 17:42:44 2004
+***************
+*** 21,28 ****
+ #include "config.h"
+ #endif
+
+- #include <alloca.h>
+ #include <stdio.h>
+ #include <stdarg.h>
+ #include <string.h>
+ #include <syslog.h>
+--- 21,28 ----
+ #include "config.h"
+ #endif
+
+ #include <stdio.h>
++ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <string.h>
+ #include <syslog.h>
+***************
+*** 100,106 ****
+ char *str;
+ va_list ap;
+
+! str = alloca (MAXDATASIZE); /* XXX - What is this, a hardcoded value?! */
+ va_start (ap, fmt);
+ len = vsnprintf (str, MAXDATASIZE, fmt, ap);
+ if (len >= 0)
+--- 100,106 ----
+ char *str;
+ va_list ap;
+
+! str = malloc(MAXDATASIZE); /* XXX - What is this, a hardcoded value?! */
+ va_start (ap, fmt);
+ len = vsnprintf (str, MAXDATASIZE, fmt, ap);
+ if (len >= 0)