epgsearch 0.9.13: format string warning fixes
Commit Message
Patch attached. These ones are harmless...
@@ -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"));
@@ -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"));