From 7897eeac1093f3dff9ba7164bc2c50d8c3f28610 Mon Sep 17 00:00:00 2001 From: David Eriksson Date: Sun, 19 Oct 2003 11:55:55 +0000 Subject: Do it right this time. svn-id: r10906 --- queen/talk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queen/talk.cpp b/queen/talk.cpp index eab5619a6d..10a26f7876 100644 --- a/queen/talk.cpp +++ b/queen/talk.cpp @@ -630,7 +630,7 @@ void Talk::speakSegment( segment[length] = '\0'; char voiceFileName[MAX_STRING_SIZE]; - snprintf(voiceFileName, sizeof(voiceFileName), "%s%1x", voiceFilePrefix + 1, index); + snprintf(voiceFileName, sizeof(voiceFileName), "%s%1x", voiceFilePrefix, index + 1); //debug(0, "Sentence segment '%*s' is said by person '%s' and voice file '%s' is played", // length, segment, person, voiceFileName); -- cgit v1.2.3