about summary refs log tree commit diff
path: root/editor/pnmcat.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-07 00:50:44 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-11-07 00:50:44 +0000
commit4235b3a1b48c013e3882e90dd430234e408773f4 (patch)
treed05f94a3940a447dab4b92de1aa099496847ebdf /editor/pnmcat.c
parenta75b93be5309afe01002d62565dc2cc348c5f559 (diff)
downloadnetpbm-mirror-4235b3a1b48c013e3882e90dd430234e408773f4.tar.gz
netpbm-mirror-4235b3a1b48c013e3882e90dd430234e408773f4.tar.xz
netpbm-mirror-4235b3a1b48c013e3882e90dd430234e408773f4.zip
Add assertion
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4173 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmcat.c')
-rw-r--r--editor/pnmcat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/pnmcat.c b/editor/pnmcat.c
index c660698c..01811cb4 100644
--- a/editor/pnmcat.c
+++ b/editor/pnmcat.c
@@ -115,7 +115,7 @@ parseCommandLine(int argc, const char ** const argv,
         cmdlineP->backcolor = BACK_AUTO;
 
     if (jtop + jbottom + jleft + jright + jcenter > 1)
-        pm_error("You may specify onlyone of -jtop, -jbottom, "
+        pm_error("You may specify only one of -jtop, -jbottom, "
                  "-jleft, and -jright");
     else {
         switch (cmdlineP->orientation) {
@@ -367,7 +367,8 @@ getPbmImageInfo(ImgInfo               const img[],
             switch (backcolor) {
             case BACK_AUTO: {
                 bit bgBit;
-                img2[i].proberow = pbm_allocrow_packed(img[i].cols+7);
+                img2[i].proberow =
+                    pbm_allocrow_packed((unsigned int)img[i].cols + 7);
                 pbm_readpbmrow_bitoffset(
                     img[i].ifP, img2[i].proberow,
                     img[i].cols, img[i].format, img2[i].offset % 8);