diff options
-rw-r--r-- | apps/talk.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
194 | unsigned char* clipbuf; | 194 | unsigned char* clipbuf; |
195 | 195 | ||
196 | if (id > VOICEONLY_DELIMITER) | 196 | if (id > VOICEONLY_DELIMITER) |
197 | { /* voice-only entries use the second part of the table */ | 197 | { /* voice-only entries use the second part of the table. |
198 | The first string comes after VOICEONLY_DELIMITER so we need to | ||
199 | substract VOICEONLY_DELIMITER + 1 */ | ||
198 | id -= VOICEONLY_DELIMITER + 1; | 200 | id -= VOICEONLY_DELIMITER + 1; |
199 | if (id >= p_voicefile->id2_max) | 201 | if (id >= p_voicefile->id2_max) |
200 | return NULL; /* must be newer than we have */ | 202 | return NULL; /* must be newer than we have */ |