mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- avoid sprintf
This commit is contained in:
parent
10ffce3285
commit
20a40063c5
59 changed files with 275 additions and 297 deletions
|
@ -71,7 +71,7 @@ bc_out_long (val, size, space, out_char)
|
|||
int len, ix;
|
||||
|
||||
if (space) (*out_char) (' ');
|
||||
sprintf (digits, "%ld", val);
|
||||
snprintf(digits, sizeof(digits), "%ld", val);
|
||||
len = strlen (digits);
|
||||
while (size > len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue