terminology: Increase size of 'buf' to avoid possible truncated string
Gcc warns during compile that the output may be truncated here: ../src/bin/options_colors.c:265:14: note: ‘snprintf’ output between 32 and 4127 bytes into a destination of size 4096 To fix this, let's just increase the size of 'buf' slightly.
This commit is contained in:
parent
a6b654ea83
commit
fc2d12a52f
|
@ -255,7 +255,7 @@ options_colors(Evas_Object *opbox, Evas_Object *term)
|
|||
len = end - start;
|
||||
if (len < sizeof(theme))
|
||||
{
|
||||
char buf[4096];
|
||||
char buf[4096 + 1024];
|
||||
|
||||
strncpy(theme, start, len);
|
||||
theme[len] = '\0';
|
||||
|
|
Loading…
Reference in New Issue