openbsd-ports/graphics/netpbm/patches/patch-pbm_pbmtoxbm_c

13 lines
451 B
Plaintext
Raw Normal View History

$OpenBSD: patch-pbm_pbmtoxbm_c,v 1.1 2003/03/29 04:13:54 brad Exp $
--- pbm/pbmtoxbm.c.orig Sat Mar 18 21:45:05 2000
+++ pbm/pbmtoxbm.c Fri Mar 28 20:22:06 2003
@@ -93,6 +93,8 @@ main( argc, argv )
bitrow = pbm_allocrow( cols );
/* Compute padding to round cols up to the nearest multiple of 8. */
+
+ overflow_add(cols, 8);
padright = ( ( cols + 7 ) / 8 ) * 8 - cols;
printf( "#define %s_width %d\n", name, cols );