From 42893d861867e83767cd83939f679b4e4bdb930c Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 5 Oct 2013 21:05:09 +0000 Subject: [PATCH] Store cheat strings inline --- similar/main/gamecntl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/similar/main/gamecntl.cpp b/similar/main/gamecntl.cpp index 37adceb4e..c169439ea 100644 --- a/similar/main/gamecntl.cpp +++ b/similar/main/gamecntl.cpp @@ -1366,7 +1366,7 @@ static int HandleTestKey(int key) #define CHEAT_MAX_LEN 15 typedef struct cheat_code { - const char *string; + const char string[CHEAT_MAX_LEN]; int *stateptr; } __pack__ cheat_code;