summaryrefslogtreecommitdiffstats
path: root/apps/talk.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-05 22:46:16 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-05 22:53:21 +0200
commitde6f96229b96fd08a6fe331638e3a98425778b45 (patch)
tree4f5e15022251cd98801a2af10eddbaba89b17d98 /apps/talk.c
parent299ce2294e3efb8700ab6eca2bd099fd089073d7 (diff)
downloadrockbox-de6f96229b96fd08a6fe331638e3a98425778b45.tar.gz
rockbox-de6f96229b96fd08a6fe331638e3a98425778b45.tar.bz2
rockbox-de6f96229b96fd08a6fe331638e3a98425778b45.zip
Add comment to clarify calculation.
Change-Id: Ie0eaa2bb1c672c974246b3e97b5d5f3b9e1f9925
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c4
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)
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 */