/[svn]/libgig/trunk/src/helper.h
ViewVC logotype

Diff of /libgig/trunk/src/helper.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1179 by persson, Sat May 12 11:25:04 2007 UTC revision 1180 by persson, Sat May 12 12:39:25 2007 UTC
# Line 168  inline void SaveString(uint32_t ChunkID, Line 168  inline void SaveString(uint32_t ChunkID,
168          ck->Resize(size);          ck->Resize(size);
169          char* pData = (char*) ck->LoadChunkData();          char* pData = (char*) ck->LoadChunkData();
170          strncpy(pData, s.c_str(), size);          strncpy(pData, s.c_str(), size);
171      } else if (s != "" || sDefault != "") { // create chunk      } else if (s != "" || sDefault != "" || bUseFixedLengthStrings) { // create chunk
172          const std::string& sToSave = (s != "") ? s : sDefault;          const std::string& sToSave = (s != "") ? s : sDefault;
173          if (!bUseFixedLengthStrings) size = sToSave.size() + 1;          if (!bUseFixedLengthStrings) size = sToSave.size() + 1;
174          ck = lstINFO->AddSubChunk(ChunkID, size);          ck = lstINFO->AddSubChunk(ChunkID, size);

Legend:
Removed from v.1179  
changed lines
  Added in v.1180

  ViewVC Help
Powered by ViewVC