- be more strict and humble when allocating memory from the stack
-- in textfield_width(), handle too large lines somehow
-
- may err_line store the processed line internally as it does the line count
SERVER:
#include "readwrite.h"
#include <stddef.h> /* size_t */
-#include <stdint.h> /* uint8_t, uint16_t, uint32_t */
+#include <stdint.h> /* uint8_t, uint16_t, uint32_t, UINT32_MAX */
#include <stdio.h> /* FILE, fseek(), sprintf(), fgets(), fgetc(), ferror(),
* fputc(), fwrite(), fclose(), fopen()
*/
{
break;
}
+ exit_trouble(UINT32_MAX == c_count, f_name, "too large text file line");
c_count++;
if ('\n' == c)
{