[vdr] epgsearch 0.9.13: format string warning fixes

Darren Salt linux at youmustbejoking.demon.co.uk
Sat Mar 4 00:45:14 CET 2006


Patch attached. These ones are harmless...

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Burn less waste. Use less packaging. Waste less.     USE FEWER RESOURCES.

I'd like to, but I'm waiting to see if I'm already a winner.
-------------- next part --------------
diff -urNad vdr-plugin-epgsearch-0.9.13~/menu_blacklistedit.c vdr-plugin-epgsearch-0.9.13/menu_blacklistedit.c
--- vdr-plugin-epgsearch-0.9.13~/menu_blacklistedit.c	2006-03-03 23:13:42.625636142 +0000
+++ vdr-plugin-epgsearch-0.9.13/menu_blacklistedit.c	2006-03-03 23:36:17.950245159 +0000
@@ -24,13 +24,13 @@
     asprintf(&SearchModes[3], tr("match exactly"));
     asprintf(&SearchModes[4], tr("regular expression"));
     
-    asprintf(&DaysOfWeek[0], WeekDayName(0));
-    asprintf(&DaysOfWeek[1], WeekDayName(1));
-    asprintf(&DaysOfWeek[2], WeekDayName(2));
-    asprintf(&DaysOfWeek[3], WeekDayName(3));
-    asprintf(&DaysOfWeek[4], WeekDayName(4));
-    asprintf(&DaysOfWeek[5], WeekDayName(5));
-    asprintf(&DaysOfWeek[6], WeekDayName(6));
+    DaysOfWeek[0] = strdup(WeekDayName(0));
+    DaysOfWeek[1] = strdup(WeekDayName(1));
+    DaysOfWeek[2] = strdup(WeekDayName(2));
+    DaysOfWeek[3] = strdup(WeekDayName(3));
+    DaysOfWeek[4] = strdup(WeekDayName(4));
+    DaysOfWeek[5] = strdup(WeekDayName(5));
+    DaysOfWeek[6] = strdup(WeekDayName(6));
     asprintf(&DaysOfWeek[7], tr("user-defined"));
     
     asprintf(&UseChannelSel[0], tr("no"));
diff -urNad vdr-plugin-epgsearch-0.9.13~/menu_searchedit.c vdr-plugin-epgsearch-0.9.13/menu_searchedit.c
--- vdr-plugin-epgsearch-0.9.13~/menu_searchedit.c	2006-03-03 23:13:42.625636142 +0000
+++ vdr-plugin-epgsearch-0.9.13/menu_searchedit.c	2006-03-03 23:36:14.474469277 +0000
@@ -28,13 +28,13 @@
     asprintf(&SearchModes[3], tr("match exactly"));
     asprintf(&SearchModes[4], tr("regular expression"));
     
-    asprintf(&DaysOfWeek[0], WeekDayName(0));
-    asprintf(&DaysOfWeek[1], WeekDayName(1));
-    asprintf(&DaysOfWeek[2], WeekDayName(2));
-    asprintf(&DaysOfWeek[3], WeekDayName(3));
-    asprintf(&DaysOfWeek[4], WeekDayName(4));
-    asprintf(&DaysOfWeek[5], WeekDayName(5));
-    asprintf(&DaysOfWeek[6], WeekDayName(6));
+    DaysOfWeek[0] = strdup(WeekDayName(0));
+    DaysOfWeek[1] = strdup(WeekDayName(1));
+    DaysOfWeek[2] = strdup(WeekDayName(2));
+    DaysOfWeek[3] = strdup(WeekDayName(3));
+    DaysOfWeek[4] = strdup(WeekDayName(4));
+    DaysOfWeek[5] = strdup(WeekDayName(5));
+    DaysOfWeek[6] = strdup(WeekDayName(6));
     asprintf(&DaysOfWeek[7], tr("user-defined"));
     
     asprintf(&UseChannelSel[0], tr("no"));


More information about the vdr mailing list