[Scummvm-cvs-logs] SF.net SVN: scummvm: [23698] scummvm/trunk/engines/kyra/resource.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Aug 8 23:34:25 CEST 2006
Revision: 23698
Author: lordhoto
Date: 2006-08-08 14:34:19 -0700 (Tue, 08 Aug 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23698&view=rev
Log Message:
-----------
Little Common::String usage 'fix'.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/resource.cpp
Modified: scummvm/trunk/engines/kyra/resource.cpp
===================================================================
--- scummvm/trunk/engines/kyra/resource.cpp 2006-08-07 13:28:19 UTC (rev 23697)
+++ scummvm/trunk/engines/kyra/resource.cpp 2006-08-08 21:34:19 UTC (rev 23698)
@@ -282,10 +282,11 @@
PakChunk chunk;
// saves the name
+ if (!(*((const char*)buffer + pos)))
+ break;
+
chunk._name = (const char*)buffer + pos;
pos += strlen(chunk._name.c_str()) + 1;
- if (!(chunk._name[0]))
- break;
if (!_isAmiga) {
endoffset = READ_LE_UINT32(buffer + pos);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list