diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:19:18 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:19:18 +0000 |
commit | a2da607bd4eed604a9e7d59528886b24de27222f (patch) | |
tree | d706edb7c4ee27a4fd2739831836c9987be8f799 /converter/pbm | |
parent | 67e41068ab7531b3bd5bf40036d0d9a36071d036 (diff) | |
download | netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.tar.gz netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.tar.xz netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.zip |
Release 10.35.45
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@642 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pbm')
-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 b7c12373..36b145c4 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. */ |