From 389f86143e8428fa947c96d1d415897dfa64e355 Mon Sep 17 00:00:00 2001 From: jonsd Date: Sat, 1 Mar 2008 10:46:18 +0000 Subject: [PATCH] Fix: $textmode, word replacement didn't include end-of-word separator (space). git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@155 d46cf337-b52f-0410-862d-fd96e6ae7743 --- src/dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dictionary.cpp b/src/dictionary.cpp index 0a0c10bf..f3901011 100755 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -3066,7 +3066,7 @@ int Translator::LookupDictList(char **wordptr, char *ph_out, unsigned int *flags // only use replacement text if this is the original word, not if a prefix or suffix has been removed word_replacement[0] = 0; word_replacement[1] = ' '; - strcpy(&word_replacement[2],ph_out); // replacement word, preceded by zerochar and space + sprintf(&word_replacement[2],"%s ",ph_out); // replacement word, preceded by zerochar and space word1 = *wordptr; *wordptr = &word_replacement[2];