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

index e5900489b381e806d834e446195e5ff13a737f52..25a15194d01d71dcf290f5d6473beb9fcf216d10 100644 (file)
@@ -359,7 +359,7 @@ static int network_set_value##num(void *o, const void *v) \
 { \
   wizard_page_t *p = o; \
   wizard_network_t *w = p->aux; \
-  snprintf(w->network_type##num, sizeof(w->network_type##num), v); \
+  snprintf(w->network_type##num, sizeof(w->network_type##num), "%s", (const char *)v); \
   return 1; \
 }