summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:50 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-26 08:01:50 +0300
commite404706d5e2ea41229fe5be9b0725202f49bf308 (patch)
treee854058fbc90ee9df581b1dafdc7bf7df24a2faa
parentd9021db4fd5558ca061987ec3face924adaf696b (diff)
parentff7329df359352a8f62a21bbb9fea47cba29b589 (diff)
downloadgawk-e404706d5e2ea41229fe5be9b0725202f49bf308.tar.gz
Merge branch 'master' into feature/typed-regex
-rw-r--r--ChangeLog4
-rw-r--r--io.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d451ef6d..2a790fc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/io.c b/io.c
index 00a627fe..816ff56a 100644
--- a/io.c
+++ b/io.c
@@ -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) {