mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
- avoid sprintf
This commit is contained in:
parent
10ffce3285
commit
20a40063c5
59 changed files with 275 additions and 297 deletions
|
@ -45,7 +45,7 @@ void bc_rt_warn (char *mesg ,...)
|
|||
char error_mesg [255];
|
||||
|
||||
va_start (args, mesg);
|
||||
vsprintf (error_mesg, mesg, args);
|
||||
vsnprintf (error_mesg, sizeof(error_mesg), mesg, args);
|
||||
va_end (args);
|
||||
|
||||
fprintf (stderr, "bc math warning: %s\n", error_mesg);
|
||||
|
@ -58,7 +58,7 @@ void bc_rt_error (char *mesg ,...)
|
|||
char error_mesg [255];
|
||||
|
||||
va_start (args, mesg);
|
||||
vsprintf (error_mesg, mesg, args);
|
||||
vsnprintf (error_mesg, sizeof(error_mesg), mesg, args);
|
||||
va_end (args);
|
||||
|
||||
fprintf (stderr, "bc math error: %s\n", error_mesg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue