Blob Blame History Raw
Index: b/src/dictionary.cpp
===================================================================
--- a/src/dictionary.cpp
+++ b/src/dictionary.cpp
@@ -3599,7 +3599,7 @@ int Lookup(Translator *tr, const char *w
 		say_as = option_sayas;
 		option_sayas = 0;   // don't speak replacement word as letter names
 		text[0] = 0;
-		strncpy0(&text[1], word1, sizeof(text));
+		strncpy0(&text[1], word1, sizeof(text)-1);
 		found = TranslateWord(tr, &text[1], 0, NULL, NULL);
 		strcpy(ph_out, word_phonemes);
 		option_sayas = say_as;