1.1 --- a/core/Translator.cpp Thu Jul 19 02:08:42 2007 +0000
1.2 +++ b/core/Translator.cpp Thu Jul 19 03:22:10 2007 +0000
1.3 @@ -368,10 +368,12 @@
1.4 *out_ptr = '\0';
1.5 state = Parse_None;
1.6 /* Now, add this to our table */
1.7 - fmt_list[cur_idx - 1] = m_pStringTab->AddString(fmt_buf);
1.8 + int tmp_idx = m_pStringTab->AddString(fmt_buf);
1.9 + /* Update pointers and update necessary variables */
1.10 pPhrase = (phrase_t *)m_pMemory->GetAddress(m_CurPhrase);
1.11 + pPhrase->fmt_bytes += strlen(fmt_buf);
1.12 fmt_list = (int *)m_pMemory->GetAddress(pPhrase->fmt_list);
1.13 - pPhrase->fmt_bytes += strlen(fmt_buf);
1.14 + fmt_list[cur_idx - 1] = tmp_idx;
1.15 } else {
1.16 if (!out_ptr)
1.17 {