diff options
Diffstat (limited to 'src/roff/troff/node.cpp')
-rw-r--r-- | src/roff/troff/node.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index 3f24d90b..e3d4d86d 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -3774,7 +3774,10 @@ void suppress_node::tprint(troff_output_file *out) char name[8192]; // remember that the filename will contain a %d in which the // last_image_id is placed - sprintf(name, last_image_filename, last_image_id); + if (last_image_filename == (char *) 0) + *name = '\0'; + else + sprintf(name, last_image_filename, last_image_id); if (is_html) { switch (last_position) { case 'c': |