AmendHub

Download:

jcs

/

subtext

/

amendments

/

254

logger: Zero first byte of buffered_logs since strlcat needs it


jcs made amendment 254 over 2 years ago
--- logger.c Thu Sep 8 22:38:45 2022 +++ logger.c Fri Sep 16 21:17:37 2022 @@ -42,6 +42,7 @@ logger_init(void) logger = xmalloczero(sizeof(struct logger), "logger"); logger->buffered_logs = xmalloc(LOGGER_BUFFERED_LOG_SIZE, "logger buffer"); + logger->buffered_logs[0] = '\0'; logger->autoflush = true; bounds.left = padding;