Index: contrib/one-true-awk/run.c =================================================================== --- contrib/one-true-awk/run.c +++ contrib/one-true-awk/run.c @@ -965,6 +965,8 @@ } tempfree(x); p += strlen(p); + if (*s == '\0') + break; s++; } *p = '\0';