]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wizard: fix compilation error
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 Dec 2015 19:04:47 +0000 (20:04 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 Dec 2015 19:04:47 +0000 (20:04 +0100)
src/wizard.c

index 5dfcfbed8f15ae72c8268c3a4e80e4c3507ed847..e5900489b381e806d834e446195e5ff13a737f52 100644 (file)
@@ -71,7 +71,7 @@ static int wizard_set_value_##field(void *o, const void *v) \
 { \
   wizard_page_t *p = o; \
   stru *w = p->aux; \
-  snprintf(w->field, sizeof(w->field), v); \
+  snprintf(w->field, sizeof(w->field), "%s", (const char *)v); \
   return 1; \
 }