Commit f5be4dfd authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(Fformat): Don't scan past end of format string that

ends in %.  Reported by: Johan Bockgård.
parent 12d10bc7
......@@ -3424,7 +3424,7 @@ usage: (format STRING &rest OBJECTS) */)
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
while (index ("-0# ", *format))
while (*format && index ("-0# ", *format))
if (*format >= '0' && *format <= '9')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment