Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: _FILE_ is a char array, not a string literal. Fixed code.

...

Code Block
bgColor#ccccff
langc
if (size > SIZE_MAX / sizeof(char *)) {
  fprintf(log_file, "%s: size %zu exceeds %zu bytes\n",
     log_file, 
    __FILE__, ": size %zu exceedssize, SIZE_MAX / sizeof(char *)\n", 
    size
  );
  size = SIZE_MAX / sizeof(char *);
}
table_size = size * sizeof(char *);

...