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:
parent
de79a6a5ed
commit
4224cb6213
1 changed files with 5 additions and 0 deletions
|
|
@ -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]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue