Commit 913f73d4 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fformat): Explicitly test for end of format string and don't use `index'.

parent 91773964
......@@ -3424,7 +3424,9 @@ usage: (format STRING &rest OBJECTS) */)
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
while (*format && index ("-0# ", *format))
while (format != end
&& (*format == '-' || *format == '0' || *format == '#'
|| * format == ' '))
++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