MAXPATHLEN includes trailing NUL

This commit is contained in:
imp 2003-06-07 18:45:45 +00:00
parent 67d1c8d061
commit 5a3c8adbb8

View File

@ -107,7 +107,7 @@ pid_t
exec_prog(char *prog, char **arglist)
{
char tmp[MAXPATHLEN];
char path[MAXPATHLEN+1];
char path[MAXPATHLEN];
pid_t pid;
int a;