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

12 lines
452 B
Plaintext
Raw Normal View History

$OpenBSD: patch-pbm_pbmtox10bm_c,v 1.1 2003/03/29 04:13:54 brad Exp $
--- pbm/pbmtox10bm.c.orig Fri Jun 9 03:07:01 2000
+++ pbm/pbmtox10bm.c Fri Mar 28 20:22:06 2003
@@ -57,6 +57,7 @@ main( argc, argv )
bitrow = pbm_allocrow( cols );
/* Compute padding to round cols up to the nearest multiple of 16. */
+ overflow_add(cols, 15);
padright = ( ( cols + 15 ) / 16 ) * 16 - cols;
printf( "#define %s_width %d\n", name, cols );