summaryrefslogtreecommitdiffstats
path: root/contrib/one-true-awk/lib.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2010-01-09 23:19:01 +0000
committerru <ru@FreeBSD.org>2010-01-09 23:19:01 +0000
commit56d4794e7235f69c1e7230e6b905785d8a053e40 (patch)
tree18d3f95433c9b0fe4842e4b5896976cc6aea9ec3 /contrib/one-true-awk/lib.c
parente1c64beebc41d28b21e9e6b120a7a361bd6acd52 (diff)
downloadFreeBSD-src-56d4794e7235f69c1e7230e6b905785d8a053e40.zip
FreeBSD-src-56d4794e7235f69c1e7230e6b905785d8a053e40.tar.gz
Update to a 26-Nov-2009 release.
Diffstat (limited to 'contrib/one-true-awk/lib.c')
-rw-r--r--contrib/one-true-awk/lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/one-true-awk/lib.c b/contrib/one-true-awk/lib.c
index c9cc5d5..017b376 100644
--- a/contrib/one-true-awk/lib.c
+++ b/contrib/one-true-awk/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 */
OpenPOWER on IntegriCloud