From 921b6ecd4d98ed10da2cac61ba90e0f108659ac3 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 6 Aug 2022 03:04:26 +0000 Subject: Fix height-width mixup in PBM case git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4399 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- editor/pamcat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/pamcat.c b/editor/pamcat.c index bac35891..adc88e29 100644 --- a/editor/pamcat.c +++ b/editor/pamcat.c @@ -349,11 +349,11 @@ padFillBitrow(unsigned char * const destBitrow, -/* concatenateLeftRightPBM() and concatenateLeftRightGen() +/* concatenateLeftRightPbm() and concatenateLeftRightGen() employ almost identical algorithms. The difference is in the data types and functions. - Same for concatenateTopBottomPBM() and concatenateTopBottomGen(). + Same for concatenateTopBottomPbm() and concatenateTopBottomGen(). */ @@ -481,7 +481,7 @@ concatenateLeftRightPbm(struct pam * const outpamP, outrow[pbm_packed_bytes(outpamP->width)-1] = 0x00; - for (row = 0; row < outpamP->width; ++row) { + for (row = 0; row < outpamP->height; ++row) { unsigned int i; for (i = 0; i < fileCt; ++i) { -- cgit 1.4.1