From 69cd8e18a1d8b446a2f22ce7299c5f024508ecdc Mon Sep 17 00:00:00 2001 From: rheiny Date: Sun, 11 Feb 2007 19:08:51 +0000 Subject: [PATCH] Fixed issue: [ 1625522 ] Incorrect search results in text mode (char buffer overflow) --- src/drivers/common/cheat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/common/cheat.cpp b/src/drivers/common/cheat.cpp index ddd093d2..9bfedade 100644 --- a/src/drivers/common/cheat.cpp +++ b/src/drivers/common/cheat.cpp @@ -373,7 +373,7 @@ static void ResetSearch(void) static int srescallb(uint32 a, uint8 last, uint8 current, void *data) { - char tmp[13]; + char tmp[14]; sprintf(tmp, "$%04x:%03d:%03d",(unsigned int)a,(unsigned int)last,(unsigned int)current); return(AddToList(tmp,a)); }