Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 63b2c18782c11b518318b02cb0efbc8e > files > 3

libxfont-1.5.1-1.2.mga5.src.rpm

--- libxfont-1.5.1.orig/src/fontfile/fontdir.c
+++ libxfont-1.5.1/src/fontfile/fontdir.c
@@ -399,8 +399,10 @@
 		}
 	    }
 	case '?':
-	    if (*string++ == XK_minus)
+	    if ((t = *string++) == XK_minus)
 		stringdashes--;
+	    if (!t)
+		return 0;
 	    break;
 	case '\0':
 	    return (*string == '\0');