Explorar el Código

import fix from glibc to resolve segfault reported by wmq in Bug 335

Mike Frysinger hace 19 años
padre
commit
8edeb6297c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libc/misc/glob/glob.c

+ 1 - 1
libc/misc/glob/glob.c

@@ -59,7 +59,7 @@ int glob_pattern_p(const char *pattern, int quote)
 		return 1;
 
 	    case '\\':
-		if (quote)
+		if (quote && p[1] != '\0')
 		    ++p;
 		break;