From 3b2570f560c41dfbbfd151e02c69505c55887d86 Mon Sep 17 00:00:00 2001 From: jonsd Date: Sat, 1 Mar 2008 10:42:47 +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@154 d46cf337-b52f-0410-862d-fd96e6ae7743 --- src/compiledict.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiledict.cpp b/src/compiledict.cpp index d27f614c..f35abce1 100755 --- a/src/compiledict.cpp +++ b/src/compiledict.cpp @@ -389,7 +389,8 @@ static char nullstring[] = {0}; if(text_not_phonemes) { - strcpy(encoded_ph,phonetic); // this is replacement text, so don't encode as phonemes + // this is replacement text, so don't encode as phonemes. Restrict the length of the replacement word + strncpy0(encoded_ph,phonetic,N_WORD_BYTES-4); } else {