diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:20:21 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:20:21 +0000 |
commit | 7aad0b4834452047fe4a4bc7e492c615eed92a2e (patch) | |
tree | 80d515df2bccb94c942f0805da5754dd1effb780 /converter/pbm/pbmtogo.c | |
parent | cabbbb7e08a42253d01dc50ba5dd923b1fed5b53 (diff) | |
download | netpbm-mirror-7aad0b4834452047fe4a4bc7e492c615eed92a2e.tar.gz netpbm-mirror-7aad0b4834452047fe4a4bc7e492c615eed92a2e.tar.xz netpbm-mirror-7aad0b4834452047fe4a4bc7e492c615eed92a2e.zip |
Release 10.42.05
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@643 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pbm/pbmtogo.c')
-rw-r--r-- | converter/pbm/pbmtogo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/converter/pbm/pbmtogo.c b/converter/pbm/pbmtogo.c index 67fe5821..e10fb2ff 100644 --- a/converter/pbm/pbmtogo.c +++ b/converter/pbm/pbmtogo.c @@ -88,6 +88,11 @@ main( argc, argv ) ifp = stdin; pbm_readpbminit(ifp, &cols, &rows, &format); + + if (cols > 1056) + pm_error("Image is wider (%u pixels) than a Graphon terminal " + "(%u pixels)", cols, 1056); + bitrow = pbm_allocrow(cols); /* Round cols up to the nearest multiple of 8. */ |