warn - make buffer bigger to avoid trunc warn

This commit is contained in:
Carsten Haitzler 2019-01-11 11:08:22 +00:00
parent 3ea9f34e00
commit f511777d7b
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ fm_open(const char *path)
p = strdup(buf);
else
{
char tmp[PATH_MAX];
char tmp[PATH_MAX + PATH_MAX + 2];
snprintf(tmp, sizeof(tmp), "%s/%s", buf, path);
p = strdup(tmp);
}