From 514b507e91ca85af91d8c8707d28bdf49b478bb1 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Sun, 26 Jul 2009 06:20:18 +0000 Subject: [PATCH] Erwan - fixing a potential segfault --- projects/mtg/include/AllAbilities.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 2174ec5a3..690ba065e 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -1063,9 +1063,8 @@ class AInstantPowerToughnessModifierUntilEOT: public InstantAbility{ } const char * getMenuText(){ - char buffer[4096]; - sprintf(buffer, "%i/%i",power,toughness); - return buffer; + sprintf(menuText, "%i/%i",power,toughness); + return menuText; } virtual ostream& toString(ostream& out) const