You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
908 B
33 lines
908 B
Index: b.c |
|
--- b.c.orig 2005-02-08 20:21:44 +0100 |
|
+++ b.c 2006-09-15 19:24:23 +0200 |
|
@@ -720,7 +720,7 @@ |
|
|
|
#ifndef HAS_ISBLANK |
|
|
|
-int (isblank)(int c) |
|
+static int (awk_isblank)(int c) |
|
{ |
|
return c==' ' || c=='\t'; |
|
} |
|
@@ -734,7 +734,7 @@ |
|
} charclasses[] = { |
|
{ "alnum", 5, isalnum }, |
|
{ "alpha", 5, isalpha }, |
|
- { "blank", 5, isblank }, |
|
+ { "blank", 5, awk_isblank }, |
|
{ "cntrl", 5, iscntrl }, |
|
{ "digit", 5, isdigit }, |
|
{ "graph", 5, isgraph }, |
|
Index: lib.c |
|
--- lib.c.orig 2005-04-24 20:37:01 +0200 |
|
+++ lib.c 2006-09-15 19:25:25 +0200 |
|
@@ -58,7 +58,7 @@ |
|
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");
|
|
|