Skip to content

Commit

Permalink
more missing final \n in stderr prints
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Oct 4, 2024
1 parent da8aac3 commit f122b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/dwg2svg2.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ help (void)
#define log_if_error(msg) \
if (error) \
{ \
fprintf (stderr, "ERROR: %s", msg); \
fprintf (stderr, "ERROR: %s\n", msg); \
exit (1); \
}
#define log_error(msg) \
{ \
fprintf (stderr, "ERROR: %s", msg); \
fprintf (stderr, "ERROR: %s\n", msg); \
exit (1); \
}
#define dynget(obj, name, field, var) \
if (!dwg_dynapi_entity_value (obj, "" name, "" field, var, NULL)) \
{ \
fprintf (stderr, "ERROR: %s.%s", name, field); \
fprintf (stderr, "ERROR: %s.%s\n", name, field); \
exit (1); \
}
#define dynget_utf8(obj, name, field, var) \
if (!dwg_dynapi_entity_utf8text (obj, "" name, "" field, var, &isnew, \
NULL)) \
{ \
fprintf (stderr, "ERROR: %s.%s", name, field); \
fprintf (stderr, "ERROR: %s.%s\n", name, field); \
exit (1); \
}

Expand Down
2 changes: 1 addition & 1 deletion examples/dwgadd.c
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ dwg_add_dat (Dwg_Data **dwgp, Bit_Chain *dat)
}
if (!i || version >= R_AFTER)
{
fprintf (stderr, "Invalid version %.*s", 40, p);
fprintf (stderr, "Invalid version %.*s\n", 40, p);
exit (1);
}
p = next_line (p, end);
Expand Down

0 comments on commit f122b04

Please sign in to comment.