From 4bfd29c702cc2b2d5c3bd3ddc935638863bffd54 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 23 Jul 2011 15:34:00 +0000 Subject: [PATCH] cheatSystem: headerId should be const --- desmume/src/cheatSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/cheatSystem.cpp b/desmume/src/cheatSystem.cpp index 764b2b580..08bc48ab7 100644 --- a/desmume/src/cheatSystem.cpp +++ b/desmume/src/cheatSystem.cpp @@ -1132,7 +1132,7 @@ bool CHEATSEXPORT::load(char *path) return false; } - char *headerID = "R4 CheatCode"; + const char *headerID = "R4 CheatCode"; char buf[255] = {0}; fread(buf, 1, strlen(headerID), fp); if (strncmp(buf, headerID, strlen(headerID)) != 0)