forked from enlightenment/efl
embryo_cc: Fix possible buffer overflow in setconfig()
Need to account for the space of the trailing '/' as well. Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
42d320c523
commit
262f05782b
|
@ -683,7 +683,8 @@ setconfig(char *root)
|
||||||
* to the list in that case
|
* to the list in that case
|
||||||
*/
|
*/
|
||||||
*(ptr + 1) = '\0';
|
*(ptr + 1) = '\0';
|
||||||
if (strlen(path) < (sizeof(path) - 1 - 7))
|
/* Need room for 'include' and DIRSEP_CHAR - so 8 chars - and \0 */
|
||||||
|
if (strlen(path) < (sizeof(path) - 1 - 8))
|
||||||
{
|
{
|
||||||
strcat(path, "include");
|
strcat(path, "include");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue