Blob Blame History Raw
From 602d66c55964998ce25c6c57b302949a9517f149 Mon Sep 17 00:00:00 2001
From: Johann Friedrichs <johann.friedrichs@web.de>
Date: Mon, 2 Dec 2019 14:08:19 +0100
Subject: Show device again in conflictcheck (revises 770de32f)


diff --git a/menu_conflictcheck.c b/menu_conflictcheck.c
index 01340f8..49f6926 100644
--- a/menu_conflictcheck.c
+++ b/menu_conflictcheck.c
@@ -159,15 +159,16 @@ cMenuConflictCheckDetailsItem::cMenuConflictCheckDetailsItem(cConflictCheckTimer
 
 bool cMenuConflictCheckDetailsItem::Update(bool Force)
 {
+#define MAXJFS 4096
     bool oldhasTimer = hasTimer;
     LOCK_TIMERS_READ;
     hasTimer = timerObj->OrigTimer(Timers) ? timerObj->OrigTimer(Timers)->HasFlags(tfActive) : false;
     if (Force || hasTimer != oldhasTimer) {
         const cTimer* timer = timerObj->timer;
-        char device[3] = ""; // compiler warns if MAXDEVICES too big 
+        char device[11] = "";
         if (hasTimer) {
             if (!timerObj->conflCheckTime && timerObj->device > -1)
-                sprintf(device, "%d", (timerObj->device + 1)&MAXDEVICES);
+                sprintf(device, "%d", (timerObj->device + 1));
             else {
                 if (timer->Local())
                     strcpy(device, tr("C"));
-- 
cgit v0.10.2