mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
parent
466cac1f52
commit
08cdb3676d
2
third-party/cJSON/cJSON.c
vendored
2
third-party/cJSON/cJSON.c
vendored
@ -127,7 +127,7 @@ static char *print_number(cJSON *item)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
str=(char*)cJSON_malloc(64); /* This is a nice tradeoff. */
|
str=(char*)cJSON_malloc(64 + (int)log10(d)); /* This is a nice tradeoff. */
|
||||||
if (str)
|
if (str)
|
||||||
{
|
{
|
||||||
if (d != d) strcpy(str, "0");
|
if (d != d) strcpy(str, "0");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user