error.c: add missing space to error format

This commit is contained in:
2026-06-10 22:28:28 +03:00
parent 71b0c7bc81
commit cba9cdca33

View File

@@ -104,7 +104,7 @@ noom_uint_t noom_format_error(const noomP_Parser* parser, const char* program_na
noom_strlen(parser->filename) + noom_strlen(parser->filename) +
sizeof(":") - 1 + sizeof(":") - 1 +
linedig + linedig +
sizeof(":") - 1 + sizeof(": ") - 1 +
noom_strlen(err.s) + noom_strlen(err.s) +
+ 1; // \0; + 1; // \0;
@@ -144,7 +144,7 @@ noom_uint_t noom_format_error(const noomP_Parser* parser, const char* program_na
buffer[pos++] = num_buf[i]; buffer[pos++] = num_buf[i];
} }
noom_safe_strcpy(buffer, &pos, buffer_size, ":"); noom_safe_strcpy(buffer, &pos, buffer_size, ": ");
noom_safe_strcpy(buffer, &pos, buffer_size, err.s); noom_safe_strcpy(buffer, &pos, buffer_size, err.s);
if (err.near) { if (err.near) {
if (err.near == 1) { if (err.near == 1) {