1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00

(Fformat): Check format control characters.

This commit is contained in:
Kenichi Handa 1998-09-26 04:20:48 +00:00
parent de79a6a5ed
commit 4224cb6213

View file

@ -2551,7 +2551,12 @@ Use %% to put a single % into the output.")
be a double. */
if (*format == 'e' || *format == 'f' || *format == 'g')
args[n] = Ffloat (args[n]);
else
#endif
if (*format != 'd' && *format != 'o' && *format != 'x'
&& *format != 'X' && *format != 'c')
error ("Invalid format operation %%%c", *format);
thissize = 30;
if (*format == 'c'
&& (! SINGLE_BYTE_CHAR_P (XINT (args[n]))