From c9b0db14af08a77bdecb260e4a53a9c1d0d787b5 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Sat, 28 Jan 2012 14:37:48 +0000 Subject: [PATCH] -fixed codedump if title in gametdb is longer than 64 chars --- source/gui/GameTDB.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/gui/GameTDB.cpp b/source/gui/GameTDB.cpp index 97a19831..15ccdea6 100644 --- a/source/gui/GameTDB.cpp +++ b/source/gui/GameTDB.cpp @@ -477,8 +477,10 @@ bool GameTDB::FindTitle(char * data, string & title, string langCode) { return false; } - - title = the_title; + + char tmp[64]; + strncpy(tmp, the_title, 64); + title=tmp; return true; }