MAXPATHLEN includes the trailing NUL character, so there's no need to add 1
to it for the size of path.
This commit is contained in:
parent
cb2b79eb74
commit
40f6e5b06d
@ -222,7 +222,7 @@ getfield(p, endp, flags)
|
||||
return (val);
|
||||
}
|
||||
|
||||
char path[MAXPATHLEN + 1];
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
FILE *
|
||||
opencal()
|
||||
|
Loading…
Reference in New Issue
Block a user