Added missing patch

This commit is contained in:
Jan Kaluza 2011-05-30 15:57:17 +02:00
parent 8b7a98e00b
commit 84316e3686

View File

@ -0,0 +1,30 @@
Index: config.c
===================================================================
--- config.c (revision 321)
+++ config.c (working copy)
@@ -199,19 +199,22 @@
char *endtag, *chptr;
char *start = *startPtr;
char *address;
-
+
if ((endtag = isolateValue(configFile, lineNum, key, startPtr, buf, length)) != NULL) {
chptr = endtag;
- while (*chptr && isprint(*chptr) && *chptr != ' ')
+ while (*chptr && isprint(*chptr) && *chptr != ' ') {
chptr++;
+ }
+
if (*chptr) {
message(MESS_ERROR, "%s:%d bad %s address %s\n",
configFile, lineNum, key, start);
return NULL;
}
- address = strdup(chptr);
+ address = strdup(endtag);
+
free(endtag);
return address;