Преглед изворни кода

Merge pull request #151 from blackberry/master

non-latin ascii character replacements
Sean Paul Taylor пре 13 година
родитељ
комит
f73888ba23
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gameplay/src/Bundle.cpp

+ 1 - 1
gameplay/src/Bundle.cpp

@@ -182,7 +182,7 @@ Bundle* Bundle::create(const char* path)
 
     // Read the GPB header info.
     char sig[9];
-    if (fread(sig, 1, 9, fp) != 9 || memcmp(sig, "«GPB»\r\n\x1A\n", 9) != 0)
+    if (fread(sig, 1, 9, fp) != 9 || memcmp(sig, "\xABGPB\xBB\r\n\x1A\n", 9) != 0)
     {
         GP_ERROR("Invalid GPB header for bundle '%s'.", path);
         if (fclose(fp) != 0)