diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-27 14:09:25 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-04-27 14:09:25 +0300 |
commit | 7bab0e1ff31ebaf7716fe2716a630c92b8ca8a44 (patch) | |
tree | bac93ed98e429ea3ecd42885a8d087db3e69fb21 /field.c | |
parent | a435b8da2941d0b3c997420c71b1f4b7b79b52ff (diff) | |
parent | e78dfd4b04060ad3278a1b3505720893ec432617 (diff) | |
download | egawk-7bab0e1ff31ebaf7716fe2716a630c92b8ca8a44.tar.gz egawk-7bab0e1ff31ebaf7716fe2716a630c92b8ca8a44.tar.bz2 egawk-7bab0e1ff31ebaf7716fe2716a630c92b8ca8a44.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'field.c')
-rw-r--r-- | field.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -163,7 +163,7 @@ rebuild_record() tlen += (NF - 1) * OFSlen; if ((long) tlen < 0) tlen = 0; - emalloc(ops, char *, tlen + 2, "rebuild_record"); + emalloc(ops, char *, tlen + 1, "rebuild_record"); cops = ops; ops[0] = '\0'; for (i = 1; i <= NF; i++) { @@ -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"); } |