embryo - embryo_cc: fix buffer overrun warning

gcc warning was right. it's a pretty smart cookie too.
This commit is contained in:
Carsten Haitzler 2013-11-09 10:15:35 +09:00
parent 85a86e77f7
commit f82c77843e
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ setconfig(char *root)
}
/* 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);
path[len] = DIRSEP_CHAR;