forked from enlightenment/efl
embryo - embryo_cc: fix buffer overrun warning
gcc warning was right. it's a pretty smart cookie too.
This commit is contained in:
parent
85a86e77f7
commit
f82c77843e
|
@ -681,7 +681,7 @@ setconfig(char *root)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure we have enough space for the trailing DIRSEP_CHAR */
|
/* Make sure we have enough space for the trailing DIRSEP_CHAR */
|
||||||
if (strlen(path) == sizeof(path) - 1)
|
if (strlen(path) == (sizeof(path) - 1 -1))
|
||||||
{
|
{
|
||||||
len = strlen(path);
|
len = strlen(path);
|
||||||
path[len] = DIRSEP_CHAR;
|
path[len] = DIRSEP_CHAR;
|
||||||
|
|
Loading…
Reference in New Issue