Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/dist/nawk Apply patch (requested by jdolecek in ticket #5...



details:   https://anonhg.NetBSD.org/src/rev/0490619ed8ad
branches:  netbsd-3
changeset: 576486:0490619ed8ad
user:      tron <tron%NetBSD.org@localhost>
date:      Tue Jul 05 13:51:44 2005 +0000

description:
Apply patch (requested by jdolecek in ticket #543):
Fix handling of RS.

diffstat:

 dist/nawk/lib.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3fc61d0985d8 -r 0490619ed8ad dist/nawk/lib.c
--- a/dist/nawk/lib.c   Tue Jul 05 13:48:12 2005 +0000
+++ b/dist/nawk/lib.c   Tue Jul 05 13:51:44 2005 +0000
@@ -437,7 +437,7 @@
                        rec = patbeg + patlen;
                } else {
                           dprintf( ("no match %s\n", rec) );
-                       strlcpy(fr, rec, sizeof(fields) - (fr - fields));
+                       strcpy(fr, rec);
                        pfa->initstat = tempstat;
                        break;
                }



Home | Main Index | Thread Index | Old Index