diff options
Diffstat (limited to 'generator')
-rw-r--r-- | generator/pbmtext.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generator/pbmtext.c b/generator/pbmtext.c index 0614657b..a5390d4b 100644 --- a/generator/pbmtext.c +++ b/generator/pbmtext.c @@ -710,6 +710,11 @@ main(int argc, char *argv[]) { &maxwidth, &maxleftb); cols = 2 * hmargin + maxwidth; + + if (cols == 0 || rows == 0) + pm_error("Input is all whitespace and/or non-renderable characters. " + "No output."); + bits = pbm_allocarray(cols, rows); /* Fill background with white */ |