diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-28 03:07:41 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-04-28 03:07:41 +0000 |
commit | 194dafa9353468913dc2174cab3e0a8b7966fd64 (patch) | |
tree | 5d67058311e63531e8ca2ec278b9a49bebaf41cb /usr.bin/awk/lib.c | |
parent | 2c7efb3dad677b8a5b4960c5b54512d6ccf11f36 (diff) |
string cleaning. ok millert@ tdeval@
Diffstat (limited to 'usr.bin/awk/lib.c')
-rw-r--r-- | usr.bin/awk/lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/lib.c b/usr.bin/awk/lib.c index 790b4f526d4..7028ea3538a 100644 --- a/usr.bin/awk/lib.c +++ b/usr.bin/awk/lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib.c,v 1.12 2003/04/04 00:42:34 deraadt Exp $ */ +/* $OpenBSD: lib.c,v 1.13 2003/04/28 03:07:40 tedu Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -433,7 +433,7 @@ int refldbld(const char *rec, const char *fs) /* build fields from reg expr in F rec = patbeg + patlen; } else { dprintf( ("no match %s\n", rec) ); - strcpy(fr, rec); + strlcpy(fr, rec, fields + fieldssize - fr); pfa->initstat = tempstat; break; } |