summaryrefslogtreecommitdiff
path: root/wm/skippy/patches/patch-ab
blob: d9c3e5807dd932300a6390ba5d6bcc6bed185c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ab,v 1.1 2007/04/13 09:33:46 xtraeme Exp $

--- config.c.orig	2007-04-13 04:46:28.000000000 +0200
+++ config.c	2007-04-13 04:48:03.000000000 +0200
@@ -72,9 +72,9 @@
 	int ix = 0, l_ix = 0;
 	dlist *new_config = 0;
 	
-	regcomp(&re_section, "^[[:space:]]*\\[[[:space:]]*([[:alnum:]]*?)[[:space:]]*\\][[:space:]]*$", REG_EXTENDED);
+	regcomp(&re_section, "^[[:space:]]*\\[[[:space:]]*([[:alnum:]]*)[[:space:]]*\\][[:space:]]*$", REG_EXTENDED);
 	regcomp(&re_empty, "^[[:space:]]*#|^[[:space:]]*$", REG_EXTENDED);
-	regcomp(&re_entry, "^[[:space:]]*([[:alnum:]]+)[[:space:]]*=[[:space:]]*(.*?)[[:space:]]*$", REG_EXTENDED);
+	regcomp(&re_entry, "^[[:space:]]*([[:alnum:]]+)[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$", REG_EXTENDED);
 	
 	while(1)
 	{
@@ -148,6 +148,7 @@
 		fclose(fin);
 		return 0;
 	}
+	data[flen] = '\0';
 	
 	fclose(fin);