fnmatch: fix "[/b" test
authornsz <nsz@port70.net>
Sun, 6 May 2012 17:11:28 +0000 (19:11 +0200)
committernsz <nsz@port70.net>
Sun, 6 May 2012 17:11:28 +0000 (19:11 +0200)
src/math/lrint.c
src/math/nextafter.c
src/math/nextafterl.c
src/regex/fnmatch.c

index a03c816..b7d14a7 100644 (file)
@@ -3,7 +3,7 @@
 #include <fenv.h>
 #include <stdio.h>
 #include <float.h>
-#include <stdlib.h>
+#include <string.h>
 #include "fenvutil.h"
 #include "test.h"
 
index 344cc54..78cb3d1 100644 (file)
@@ -3,7 +3,7 @@
 #include <fenv.h>
 #include <stdio.h>
 #include <float.h>
-#include <stdlib.h>
+#include <string.h>
 #include "fenvutil.h"
 #include "test.h"
 
index 9aa9421..d5eb6cf 100644 (file)
@@ -3,7 +3,7 @@
 #include <fenv.h>
 #include <stdio.h>
 #include <float.h>
-#include <stdlib.h>
+#include <string.h>
 #include "fenvutil.h"
 #include "test.h"
 
index 7994b78..c59c4b2 100644 (file)
@@ -85,7 +85,7 @@ struct {
        { "\\*/b", "*/b", 0, 0 },
        { "\\?/b", "a/b", 0, FNM_NOMATCH },
        { "\\?/b", "?/b", 0, 0 },
-       { "[/b", "[/b", 0, -FNM_NOMATCH },
+       { "[/b", "[/b", 0, 0 },
        { "\\[/b", "[/b", 0, 0 },
        { "??""/b", "aa/b", 0, 0 },
        { "???b", "aa/b", 0, 0 },