]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
docker: Replace realloc_pm() for check_size().
authorRadosław Korzeniewski <radekk@inteos.pl>
Wed, 15 Jan 2020 10:59:06 +0000 (11:59 +0100)
committerRadosław Korzeniewski <radekk@inteos.pl>
Wed, 15 Jan 2020 10:59:06 +0000 (11:59 +0100)
bacula/src/plugins/fd/docker/dkcommctx.c

index 286de1a6daf60b6d422b7cad38a91dbe12b86c8f..bdf58e602bd057bfa3d3eb7dde226f33624d9e67 100644 (file)
@@ -438,7 +438,7 @@ int32_t DKCOMMCTX::read_output(bpContext *ctx, POOL_MEM &out)
          continue;
       }
       /* it seems out buffer is too small for all data */
-      out.realloc_pm(rbytes + 1024);
+      out.check_size(rbytes + 1024);
    }
    return rbytes;
 }