Revision: 55940
http://sourceforge.net/p/brlcad/code/55940
Author: starseeker
Date: 2013-07-02 19:13:33 +0000 (Tue, 02 Jul 2013)
Log Message:
-----------
Presume this is bif->fd and not just fd?
Modified Paths:
--------------
brlcad/trunk/src/libicv/fileformat.c
Modified: brlcad/trunk/src/libicv/fileformat.c
===================================================================
--- brlcad/trunk/src/libicv/fileformat.c 2013-07-02 19:07:09 UTC (rev
55939)
+++ brlcad/trunk/src/libicv/fileformat.c 2013-07-02 19:13:33 UTC (rev
55940)
@@ -254,7 +254,7 @@
size = height*width*3;
bif->data = (unsigned char*)bu_malloc(size, "icv_image data");
- if (read(fd, bif->data, size) < 0) {
+ if (read(bif->fd, bif->data, size) < 0) {
bu_log("load_pix: short Read\n");
return 0;
}
@@ -265,7 +265,7 @@
bif->height = height;
bif->width = width;
bif->depth = 3;
- close(fd);
+ close(bif->fd);
return bif;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits