aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-19 18:21:10 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:11:43 (GMT)
commit22de4727711367cfb847ffd1a8bd3aff97dca644 (patch)
tree7bf455dcc8c02b0327afa49cc4849ffef62e4f09
parent85b0051b12a3862c92219b33f7846c5fb67be679 (diff)
Fix a warning about printf format not being a string literal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--src/tvtimeosd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tvtimeosd.c b/src/tvtimeosd.c
index d5fb4aa..4aa72dc 100644
--- a/src/tvtimeosd.c
+++ b/src/tvtimeosd.c
@@ -558,7 +558,7 @@ void tvtime_osd_set_freq_table( tvtime_osd_t *osd, const char *freqtable )
void tvtime_osd_set_audio_mode( tvtime_osd_t *osd, const char *audiomode )
{
- snprintf( osd->audiomode_text, sizeof( osd->audiomode_text ), audiomode );
+ snprintf( osd->audiomode_text, sizeof( osd->audiomode_text ), "%s", audiomode );
}
void tvtime_osd_set_channel_number( tvtime_osd_t *osd, const char *text )

Privacy Policy