diff --git a/apps/talk.c b/apps/talk.c index 675cfa0966..b94dcf18ee 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -194,7 +194,9 @@ static unsigned char* get_clip(long id, long* p_size) unsigned char* clipbuf; if (id > VOICEONLY_DELIMITER) - { /* voice-only entries use the second part of the table */ + { /* voice-only entries use the second part of the table. + The first string comes after VOICEONLY_DELIMITER so we need to + substract VOICEONLY_DELIMITER + 1 */ id -= VOICEONLY_DELIMITER + 1; if (id >= p_voicefile->id2_max) return NULL; /* must be newer than we have */