diff options
author | wlemb <wlemb> | 2004-05-08 18:06:32 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2004-05-08 18:06:32 +0000 |
commit | 33f163652b80bd1ea73e620dcaba8c7393c6c2a7 (patch) | |
tree | fadf624ccfbc735bf7d8d30bef207c7eef0908ae /src | |
parent | ec3e7631a8e613bc06c05c036c67f1c0f638e82d (diff) | |
download | groff-33f163652b80bd1ea73e620dcaba8c7393c6c2a7.tar.gz |
* src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
that all implementations of sprintf handle null pointers correctly.
Diffstat (limited to 'src')
-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': |