Fix potential segv.

SVN revision: 22578
This commit is contained in:
Kim Woelders 2006-05-13 09:46:22 +00:00
parent c31cb20380
commit 914548b644
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ AlertButtonText(int btn, const char *text)
return NULL;
s = Emalloc(strlen(text) + 6);
if (!s)
return NULL;
sprintf(s, "(F%d) %s", btn, text);
return s;