From: Kern Sibbald Date: Tue, 7 Aug 2018 13:03:51 +0000 (+0200) Subject: Fix bug #2410 bdirjson output incorrect for day greater than 24 X-Git-Tag: Release-9.2.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e528f7793b3689ea49fbe906d67128cdab9838e;p=thirdparty%2Fbacula.git Fix bug #2410 bdirjson output incorrect for day greater than 24 --- 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);