diff options
author | obrien <obrien@FreeBSD.org> | 2007-10-25 12:43:22 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2007-10-25 12:43:22 +0000 |
commit | 06cf08f7c6c5e4449fd89a0ffa82bd66599e58db (patch) | |
tree | e9674634f5e7c8646d2981c036519c5999062fb2 /usr.bin/awk/lib.c.diff | |
parent | 56c7c261e2f5d0711d9eedc3a2aa3068fba524b8 (diff) | |
download | FreeBSD-src-06cf08f7c6c5e4449fd89a0ffa82bd66599e58db.zip FreeBSD-src-06cf08f7c6c5e4449fd89a0ffa82bd66599e58db.tar.gz |
The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795
and bin/100443.
Diffstat (limited to 'usr.bin/awk/lib.c.diff')
-rw-r--r-- | usr.bin/awk/lib.c.diff | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/usr.bin/awk/lib.c.diff b/usr.bin/awk/lib.c.diff deleted file mode 100644 index 5b654be..0000000 --- a/usr.bin/awk/lib.c.diff +++ /dev/null @@ -1,27 +0,0 @@ -$FreeBSD$ - -Index: lib.c -=================================================================== -RCS file: /home/ncvs/src/contrib/one-true-awk/lib.c,v -retrieving revision 1.1.1.5 -diff -u -p -u -r1.1.1.5 lib.c ---- lib.c 5 Jun 2007 15:33:51 -0000 1.1.1.5 -+++ lib.c 8 Jun 2007 04:14:51 -0000 -@@ -40,7 +40,7 @@ char *fields; - int fieldssize = RECSIZE; - - Cell **fldtab; /* pointers to Cells */ --char inputFS[10] = " "; -+char inputFS[100] = " "; - - #define MAXFLD 2 - int nfields = MAXFLD; /* last allocated slot for $i */ -@@ -58,7 +58,7 @@ static Cell dollar1 = { OCELL, CFLD, NUL - void recinit(unsigned int n) - { - if ( (record = (char *) malloc(n)) == NULL -- || (fields = (char *) malloc(n)) == NULL -+ || (fields = (char *) malloc(n+1)) == NULL - || (fldtab = (Cell **) malloc((nfields+1) * sizeof(Cell *))) == NULL - || (fldtab[0] = (Cell *) malloc(sizeof(Cell))) == NULL ) - FATAL("out of space for $0 and fields"); |