update Sun Oct 18 06:37:00 PDT 2009
[pkgsrc.git] / wm / skippy / patches / patch-ab
1 $NetBSD: patch-ab,v 1.1 2007/04/13 09:33:46 xtraeme Exp $
2
3 --- config.c.orig       2007-04-13 04:46:28.000000000 +0200
4 +++ config.c    2007-04-13 04:48:03.000000000 +0200
5 @@ -72,9 +72,9 @@
6         int ix = 0, l_ix = 0;
7         dlist *new_config = 0;
8         
9 -       regcomp(&re_section, "^[[:space:]]*\\[[[:space:]]*([[:alnum:]]*?)[[:space:]]*\\][[:space:]]*$", REG_EXTENDED);
10 +       regcomp(&re_section, "^[[:space:]]*\\[[[:space:]]*([[:alnum:]]*)[[:space:]]*\\][[:space:]]*$", REG_EXTENDED);
11         regcomp(&re_empty, "^[[:space:]]*#|^[[:space:]]*$", REG_EXTENDED);
12 -       regcomp(&re_entry, "^[[:space:]]*([[:alnum:]]+)[[:space:]]*=[[:space:]]*(.*?)[[:space:]]*$", REG_EXTENDED);
13 +       regcomp(&re_entry, "^[[:space:]]*([[:alnum:]]+)[[:space:]]*=[[:space:]]*(.*)[[:space:]]*$", REG_EXTENDED);
14         
15         while(1)
16         {
17 @@ -148,6 +148,7 @@
18                 fclose(fin);
19                 return 0;
20         }
21 +       data[flen] = '\0';
22         
23         fclose(fin);
24