diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2016-10-26 Arnold D. Robbins <arnold@skeeve.com> + + * io.c (init_awkpath): Set max path len for leading separator. + 2016-10-25 Arnold D. Robbins <arnold@skeeve.com> * io.c (init_awkpath): Restore documented behavior whereby @@ -2748,8 +2748,10 @@ init_awkpath(path_info *pi) start = path; i = 0; - if (*path == envsep) /* null entry at front of path */ + if (*path == envsep) { /* null entry at front of path */ pi->awkpath[i++] = "."; + pi->max_pathlen = 1; + } while (*start) { if (*start == envsep) { |