embryo_cc - warn - bigger buffer to avoid truncation warning

This commit is contained in:
Carsten Haitzler 2018-11-08 16:00:11 +00:00
parent 34b45b235c
commit c76ea749c1
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ plungefile(char *name, int try_currentpath, int try_includepaths)
{
for (i = 0; !result && (ptr = get_path(i)); i++)
{
char path[PATH_MAX];
char path[PATH_MAX + PATH_MAX + 128];
snprintf(path, sizeof (path), "%s/%s", ptr, name);
path[sizeof path - 1] = '\0'; /* force '\0' termination */