[BACK]Return to b.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/b.c between version 1.44 and 1.45

version 1.44, 2023/10/06 22:31:21 version 1.45, 2023/10/30 17:52:54
Line 440 
Line 440 
                                 }                                  }
                                 while (c < c2) {                                  while (c < c2) {
                                         if (i >= bufsz) {                                          if (i >= bufsz) {
                                                 buf = (int *) reallocarray(buf, bufsz, sizeof(int) * 2);                                                  buf = (int *) reallocarray(buf, bufsz, 2 * sizeof(int));
                                                 if (buf == NULL)                                                  if (buf == NULL)
                                                         FATAL("out of space for character class [%.10s...] 2", p);                                                          FATAL("out of space for character class [%.10s...] 2", p);
                                                 bufsz *= 2;                                                  bufsz *= 2;
Line 453 
Line 453 
                         }                          }
                 }                  }
                 if (i >= bufsz) {                  if (i >= bufsz) {
                         buf = (int *) reallocarray(buf, bufsz, sizeof(int) * 2);                          buf = (int *) reallocarray(buf, bufsz, 2 * sizeof(int));
                         if (buf == NULL)                          if (buf == NULL)
                                 FATAL("out of space for character class [%.10s...] 2", p);                                  FATAL("out of space for character class [%.10s...] 2", p);
                         bufsz *= 2;                          bufsz *= 2;

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45