From f72b322d1b5b9f4d0ca465512c508735f09dc9b4 Mon Sep 17 00:00:00 2001 From: avolkov Date: Mon, 23 Jan 2006 21:01:19 +0000 Subject: [PATCH] Fixed captain/ship name truncated after entering git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2227 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/gameopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/gameopt.c b/sc2/src/sc2code/gameopt.c index 23904edd2..11057d0c2 100644 --- a/sc2/src/sc2code/gameopt.c +++ b/sc2/src/sc2code/gameopt.c @@ -415,7 +415,7 @@ DoNaming (PMENU_STATE pMS) tes.FrameCallback = 0; if (DoTextEntry (&tes)) - utf8StringCopy (Setting, sizeof (Setting), buf); + utf8StringCopy (Setting, tes.MaxSize, buf); else utf8StringCopy (buf, sizeof (buf), Setting); DrawDescriptionString (pMS, 0, DDSHS_NORMAL);