fix netpbm patch
This commit is contained in:
parent
fde03a96c7
commit
00c87adf9e
@ -227,19 +227,6 @@ index d8e0657..12c7468 100644
|
||||
|
||||
data = pbm_allocarray(nOutCols, nOutRows);
|
||||
|
||||
diff --git a/converter/pbm/mgrtopbm.c b/converter/pbm/mgrtopbm.c
|
||||
index 9f7004a..60e8477 100644
|
||||
--- a/converter/pbm/mgrtopbm.c
|
||||
+++ b/converter/pbm/mgrtopbm.c
|
||||
@@ -65,6 +65,8 @@ readMgrHeader(FILE * const ifP,
|
||||
if (head.h_high < ' ' || head.l_high < ' ')
|
||||
pm_error("Invalid width field in MGR header");
|
||||
|
||||
+ overflow_add(*colsP, pad);
|
||||
+
|
||||
*colsP = (((int)head.h_wide - ' ') << 6) + ((int)head.l_wide - ' ');
|
||||
*rowsP = (((int)head.h_high - ' ') << 6) + ((int) head.l_high - ' ');
|
||||
*padrightP = ( ( *colsP + pad - 1 ) / pad ) * pad - *colsP;
|
||||
diff --git a/converter/pbm/pbmto4425.c b/converter/pbm/pbmto4425.c
|
||||
index 1d97ac6..c4c8cbb 100644
|
||||
--- a/converter/pbm/pbmto4425.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user