forked from enlightenment/efl
embryo_cc - warn - bigger buffer to avoid truncation warning
This commit is contained in:
parent
34b45b235c
commit
c76ea749c1
|
@ -144,7 +144,7 @@ plungefile(char *name, int try_currentpath, int try_includepaths)
|
||||||
{
|
{
|
||||||
for (i = 0; !result && (ptr = get_path(i)); i++)
|
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);
|
snprintf(path, sizeof (path), "%s/%s", ptr, name);
|
||||||
path[sizeof path - 1] = '\0'; /* force '\0' termination */
|
path[sizeof path - 1] = '\0'; /* force '\0' termination */
|
||||||
|
|
Loading…
Reference in New Issue