]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix bug #2410 bdirjson output incorrect for day greater than 24
authorKern Sibbald <kern@sibbald.com>
Tue, 7 Aug 2018 13:03:51 +0000 (15:03 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 7 Aug 2018 13:03:51 +0000 (15:03 +0200)
bacula/src/dird/bdirjson.c

index e4f2a3eaf0bf6358a4abfb3b23e7637fdea9f4a2..517cb241a6b7bd5fb6e43ef5d055e43df65b0d75 100644 (file)
@@ -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);