summaryrefslogtreecommitdiff
path: root/net/yale-tftpd/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'net/yale-tftpd/patches/patch-af')
-rw-r--r--net/yale-tftpd/patches/patch-af22
1 files changed, 18 insertions, 4 deletions
diff --git a/net/yale-tftpd/patches/patch-af b/net/yale-tftpd/patches/patch-af
index b4bdd19c0c0..571066329e9 100644
--- a/net/yale-tftpd/patches/patch-af
+++ b/net/yale-tftpd/patches/patch-af
@@ -1,16 +1,21 @@
-$NetBSD: patch-af,v 1.2 2005/12/18 18:37:16 joerg Exp $
+$NetBSD: patch-af,v 1.3 2007/10/02 20:23:08 heinz Exp $
---- classes/config.c.orig 1994-10-05 05:18:21.000000000 +0000
+--- classes/config.c.orig 1994-10-05 06:18:21.000000000 +0100
+++ classes/config.c
-@@ -1,6 +1,7 @@
+@@ -1,8 +1,12 @@
#define CLASS_Config_PRIVATE
#include "config.h"
+#include <stdlib.h>
#include <strings.h>
#include <ctype.h>
++#ifdef HAVE_STRERROR
++#include <string.h>
++#endif
-@@ -35,10 +36,6 @@ static Config config_expand();
+ #define DFLT_NFIELDS 10
+ #define START_FIELD(S) \
+@@ -35,10 +39,6 @@ static Config config_expand();
static unsigned char* config_copy();
static unsigned char* get_quoted_string();
@@ -21,3 +26,12 @@ $NetBSD: patch-af,v 1.2 2005/12/18 18:37:16 joerg Exp $
static int dflt_options = CFG_OPT_UCASE;
Config
+@@ -130,7 +130,7 @@ char* buf;
+ switch (type) {
+ case BRK_QUOTE:
+ START_FIELD(to);
+- fr = get_quoted_string (*fr, fr+1, &to);
++ fr = get_quoted_string (*fr, fr+1, (char**)&to);
+ fr++; /* skip terminating quote */
+ break;
+