We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ec075a commit 0a3ccd2Copy full SHA for 0a3ccd2
src/comets.c
@@ -3998,9 +3998,10 @@ void print_current_quests(void)
3998
wchar_t* convert_formula_to_sentence(char *formula_string)
3999
{
4000
wchar_t wc_formula[2000];
4001
- wchar_t sentence[2000];
+ wchar_t *sentence;
4002
wchar_t *ptr;
4003
wchar_t *temp;
4004
+ sentence = malloc(sizeof(wchar_t)*2000);
4005
mbstowcs(wc_formula,formula_string,2000);
4006
temp = wcstok(wc_formula,L" ",&ptr);
4007
sentence[0] = L'\0';
0 commit comments