aboutsummaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2010-01-09 23:04:24 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2010-01-09 23:04:24 +0000
commitd9859a0e4b8744c01f13cf391ee5cfbf57c5e818 (patch)
tree9c534258e481a3cc70a8d7e2e44f6726fd042d76 /lib.c
parent2f77d6040739b460e8f831f9d86510505ad8ed75 (diff)
downloadsrc-d9859a0e4b8744c01f13cf391ee5cfbf57c5e818.tar.gz
src-d9859a0e4b8744c01f13cf391ee5cfbf57c5e818.zip
Vendor import of bwk's 26-Nov-2009 release.vendor/one-true-awk/20091126
Notes
Notes: svn path=/vendor/one-true-awk/dist/; revision=201945 svn path=/vendor/one-true-awk/20091126/; revision=201946; tag=vendor/one-true-awk/20091126
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index c9cc5d563b16..017b37670d07 100644
--- a/lib.c
+++ b/lib.c
@@ -274,6 +274,7 @@ void fldbld(void) /* create fields from current record */
}
fr = fields;
i = 0; /* number of fields accumulated here */
+ strcpy(inputFS, *FS);
if (strlen(inputFS) > 1) { /* it's a regular expression */
i = refldbld(r, inputFS);
} else if ((sep = *inputFS) == ' ') { /* default whitespace */