diff options
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c index 70374a1f08..9191922c31 100644 --- a/apps/screens.c +++ b/apps/screens.c | |||
@@ -561,7 +561,10 @@ static const char * id3_get_or_speak_info(int selected_item, void* data, | |||
561 | case LANG_ID3_COMMENT: | 561 | case LANG_ID3_COMMENT: |
562 | if (!id3->comment) | 562 | if (!id3->comment) |
563 | return NULL; | 563 | return NULL; |
564 | snprintf(buffer, buffer_len, "%s", id3->comment); | 564 | |
565 | if (!memccpy (buffer, id3->comment, '\0', buffer_len)) | ||
566 | buffer[buffer_len - 1] = '\0'; | ||
567 | |||
565 | val=buffer; | 568 | val=buffer; |
566 | if(say_it && val) | 569 | if(say_it && val) |
567 | talk_spell(val, true); | 570 | talk_spell(val, true); |
@@ -608,7 +611,10 @@ static const char * id3_get_or_speak_info(int selected_item, void* data, | |||
608 | case LANG_FORMAT: | 611 | case LANG_FORMAT: |
609 | if (id3->codectype >= AFMT_NUM_CODECS) | 612 | if (id3->codectype >= AFMT_NUM_CODECS) |
610 | return NULL; | 613 | return NULL; |
611 | snprintf(buffer, buffer_len, "%s", audio_formats[id3->codectype].label); | 614 | |
615 | if (!memccpy (buffer, audio_formats[id3->codectype].label, '\0', buffer_len)) | ||
616 | buffer[buffer_len - 1] = '\0'; | ||
617 | |||
612 | val=buffer; | 618 | val=buffer; |
613 | if(say_it) | 619 | if(say_it) |
614 | talk_spell(val, true); | 620 | talk_spell(val, true); |