Revision: 56728
http://sourceforge.net/p/brlcad/code/56728
Author: mohitdaga
Date: 2013-08-09 21:26:34 +0000 (Fri, 09 Aug 2013)
Log Message:
-----------
WS
Modified Paths:
--------------
brlcad/trunk/src/libicv/bw.c
brlcad/trunk/src/libicv/pix.c
Modified: brlcad/trunk/src/libicv/bw.c
===================================================================
--- brlcad/trunk/src/libicv/bw.c 2013-08-09 21:25:37 UTC (rev 56727)
+++ brlcad/trunk/src/libicv/bw.c 2013-08-09 21:26:34 UTC (rev 56728)
@@ -89,13 +89,13 @@
size = (size_t) height*width;
- if(filename==NULL)
- fd = 0; /* for stdin */
+ if(filename==NULL)
+ fd = 0; /* for stdin */
else if ((fd = open(filename, O_RDONLY, WRMODE)) < 0) {
bu_log("bw_load: Cannot open file for reading\n");
return NULL;
- }
-
+ }
+
data = (unsigned char *)bu_malloc(size, "bw_load : unsigned char data");
if (read(fd, data, size) != size) {
bu_log("bw_load: Error Occurred while Reading\n");
Modified: brlcad/trunk/src/libicv/pix.c
===================================================================
--- brlcad/trunk/src/libicv/pix.c 2013-08-09 21:25:37 UTC (rev 56727)
+++ brlcad/trunk/src/libicv/pix.c 2013-08-09 21:26:34 UTC (rev 56728)
@@ -83,13 +83,13 @@
size = (size_t) height*width*3;
- if(filename == NULL)
- fd = 0; /* for stdin */
+ if(filename == NULL)
+ fd = 0; /* for stdin */
else if ((fd = open(filename, O_RDONLY, WRMODE))<0) {
bu_log("bw_load: Cannot open file for reading\n");
return NULL;
- }
-
+ }
+
data = (unsigned char *)bu_malloc(size, "pix_load : unsigned char data");
if (read(fd, data, size) != size) {
bu_log("pix_load: Error Occurred while Reading\n");
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