[commit] r1285 - trunk/GME/Core

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Tue Apr 26 11:02:18 CDT 2011


Author: ksmyth
Date: Tue Apr 26 11:02:18 2011
New Revision: 1285

Log:
Fix binary attr Set

Modified:
   trunk/GME/Core/CoreBinFile.h

Modified: trunk/GME/Core/CoreBinFile.h
==============================================================================
--- trunk/GME/Core/CoreBinFile.h	Tue Apr 26 09:24:08 2011	(r1284)
+++ trunk/GME/Core/CoreBinFile.h	Tue Apr 26 11:02:18 2011	(r1285)
@@ -483,10 +483,11 @@
 			}
 			else
 			{
+				int len = GetArrayLength(v);
 				if (need_free) free(data);
-				data = (unsigned char*) malloc(sizeof(len) + len);
+				data = (unsigned char*) malloc(sizeof(this->len) + len);
 				need_free = true;
-				len = GetArrayLength(v);
+				this->len = len;
 				CopyTo(v, value, value + len);
 			}
 		}


More information about the gme-commit mailing list