Revision: 65392
http://sourceforge.net/p/brlcad/code/65392
Author: carlmoore
Date: 2015-06-18 18:34:35 +0000 (Thu, 18 Jun 2015)
Log Message:
-----------
get bwcrop working by adding stuff which (with different variable names) was in
bwscale
Modified Paths:
--------------
brlcad/trunk/src/util/bwcrop.c
Modified: brlcad/trunk/src/util/bwcrop.c
===================================================================
--- brlcad/trunk/src/util/bwcrop.c 2015-06-18 18:30:43 UTC (rev 65391)
+++ brlcad/trunk/src/util/bwcrop.c 2015-06-18 18:34:35 UTC (rev 65392)
@@ -81,6 +81,12 @@
if (max > 4096) max = 4096;
buflines = max;
+
+ if (max < scanlen)
+ buflines = max;
+ else
+ buflines = scanlen;
+
buffer = (unsigned char *)bu_malloc(buflines * len, "buffer");
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits