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:
Christopher Michael 2021-09-21 10:18:04 -04:00
parent a6b654ea83
commit fc2d12a52f
1 changed files with 1 additions and 1 deletions

View File

@ -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';