Revision: 56725
http://sourceforge.net/p/brlcad/code/56725
Author: brlcad
Date: 2013-08-09 19:33:28 +0000 (Fri, 09 Aug 2013)
Log Message:
-----------
bump the maximum size up to a measily 4096 for now until icv integration makes
this stupidity go away
Modified Paths:
--------------
brlcad/trunk/src/util/bwcrop.c
Modified: brlcad/trunk/src/util/bwcrop.c
===================================================================
--- brlcad/trunk/src/util/bwcrop.c 2013-08-09 19:27:37 UTC (rev 56724)
+++ brlcad/trunk/src/util/bwcrop.c 2013-08-09 19:33:28 UTC (rev 56725)
@@ -40,7 +40,7 @@
#define round(x) ((int)(x+0.5))
-#define MAXBUFBYTES 1024*1024 /* max bytes to malloc in buffer space */
+#define MAXBUFBYTES 4096*4096 /* max bytes to malloc in buffer space */
unsigned char *buffer;
ssize_t scanlen; /* length of infile scanlines */
@@ -71,11 +71,11 @@
max = MAXBUFBYTES / len;
/*
- * Do a max of 512. We really should see how big
+ * Do a max of 4096. We really should see how big
* the input file is to decide if we should buffer
* less than our max.
*/
- if (max > 512) max = 512;
+ if (max > 4096) max = 4096;
buflines = max;
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.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits