Embryo: be sure that the string buffer is always NULL terminated

SVN revision: 75443
This commit is contained in:
Vincent Torri 2012-08-20 06:26:46 +00:00
parent 386f4736f5
commit 1e5f8e3007
1 changed files with 2 additions and 0 deletions

View File

@ -653,6 +653,8 @@ setconfig(char *root)
char *ptr;
int len;
path[sizeof(path) - 1] = 0;
/* add the default "include" directory */
if (root)
{