MAXPATHLEN includes trailing NUL
This commit is contained in:
parent
67d1c8d061
commit
5a3c8adbb8
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user