|
From: <cn...@us...> - 2008-12-30 19:36:15
|
Revision: 99
http://hgengine.svn.sourceforge.net/hgengine/?rev=99&view=rev
Author: cnlohr
Date: 2008-12-30 19:36:06 +0000 (Tue, 30 Dec 2008)
Log Message:
-----------
correctly truncate fingerprint
Modified Paths:
--------------
Mercury2/src/HGMDLModel.cpp
Modified: Mercury2/src/HGMDLModel.cpp
===================================================================
--- Mercury2/src/HGMDLModel.cpp 2008-12-30 19:21:53 UTC (rev 98)
+++ Mercury2/src/HGMDLModel.cpp 2008-12-30 19:36:06 UTC (rev 99)
@@ -15,7 +15,7 @@
void HGMDLModel::LoadModel(FILE* hgmdl)
{
char fingerPrint[5];
- fingerPrint[5] = 0;
+ fingerPrint[4] = 0;
fread(fingerPrint, 4, 1, hgmdl);
string p(fingerPrint);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|