error: add missing space to error format
Reviewed-on: #8 Co-authored-by: tema5002 <tema5002@tuta.io> Co-committed-by: tema5002 <tema5002@tuta.io>
This commit was merged in pull request #8.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user