aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-14 20:38:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-14 20:38:14 +0200
commitc55956b6a10d0a4d0b151c1be976dc9c344c1103 (patch)
tree8711c2b5a501af116782f470fa5c0ec9e18dbabf /field.c
parentb6ac928a53d146233741fc5f7fe1cac66de27303 (diff)
downloadegawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.tar.gz
egawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.tar.bz2
egawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.zip
More fixes to stop allocating an extra byte.
Diffstat (limited to 'field.c')
-rw-r--r--field.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/field.c b/field.c
index c23f0b10..13a5db6f 100644
--- a/field.c
+++ b/field.c
@@ -1138,7 +1138,7 @@ set_FIELDWIDTHS()
FIELDWIDTHS[0] = 0;
for (i = 1; ; i++) {
unsigned long int tmp;
- if (i + 2 >= fw_alloc) {
+ if (i + 1 >= fw_alloc) {
fw_alloc *= 2;
erealloc(FIELDWIDTHS, int *, fw_alloc * sizeof(int), "set_FIELDWIDTHS");
}