Skip to content

Commit f8287b2

Browse files
authored
Merge pull request #338 from fedefrancescon/gcc15-nonnull-strings
fix(grisu3): GCC15 Complaining about non-null terminated string
2 parents b957b1d + a256908 commit f8287b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

external/grisu3/grisu3_print.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static int grisu3_i_to_str(int val, char *str)
183183

184184
static int grisu3_print_nan(uint64_t v, char *dst)
185185
{
186-
static char hexdigits[16] = "0123456789ABCDEF";
186+
static char hexdigits[] = "0123456789ABCDEF";
187187
int i = 0;
188188

189189
dst[0] = 'N';

include/flatcc/portable/grisu3_print.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ static int grisu3_i_to_str(int val, char *str)
183183

184184
static int grisu3_print_nan(uint64_t v, char *dst)
185185
{
186-
static char hexdigits[16] = "0123456789ABCDEF";
186+
static char hexdigits[] = "0123456789ABCDEF";
187187
int i = 0;
188188

189189
dst[0] = 'N';

0 commit comments

Comments
 (0)