From 0e528f7793b3689ea49fbe906d67128cdab9838e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 7 Aug 2018 15:03:51 +0200 Subject: [PATCH] Fix bug #2410 bdirjson output incorrect for day greater than 24 --- bacula/src/dird/bdirjson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/dird/bdirjson.c b/bacula/src/dird/bdirjson.c index e4f2a3eaf..517cb241a 100644 --- a/bacula/src/dird/bdirjson.c +++ b/bacula/src/dird/bdirjson.c @@ -849,7 +849,7 @@ static void display_run(HPKT &hpkt) first = false; } /* bit 32 is used to store the keyword LastDay, so we look up to 0-31 */ - if (byte_is_set(run->mday, sizeof(run->mday) - 1)) { + if (byte_is_set(run->mday, sizeof(run->mday))) { if (!first) sendit(NULL, ",\n"); sendit(NULL, " \"Day\":"); display_bit_array(run->mday, 31); -- 2.47.3