Skip to content

Commit 0a3ccd2

Browse files
committed
Formula announcement bug fixed
1 parent 7ec075a commit 0a3ccd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comets.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3998,9 +3998,10 @@ void print_current_quests(void)
39983998
wchar_t* convert_formula_to_sentence(char *formula_string)
39993999
{
40004000
wchar_t wc_formula[2000];
4001-
wchar_t sentence[2000];
4001+
wchar_t *sentence;
40024002
wchar_t *ptr;
40034003
wchar_t *temp;
4004+
sentence = malloc(sizeof(wchar_t)*2000);
40044005
mbstowcs(wc_formula,formula_string,2000);
40054006
temp = wcstok(wc_formula,L" ",&ptr);
40064007
sentence[0] = L'\0';

0 commit comments

Comments
 (0)