aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queen/talk.cpp2
1 files changed, 1 insertions, 1 deletions
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);