diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-01-26 15:51:19 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-01-26 15:51:19 +0100 |
commit | f86cce3d2ba40d0319312d67587264a63039795f (patch) | |
tree | ded2b514d373657f16f9f484fd3261e17ccac300 | |
parent | f2aaae4020177d399e625bcb43276524123afd54 (diff) | |
download | libgphoto2-f86cce3d2ba40d0319312d67587264a63039795f.tar.gz |
round up the download size (AFL)
-rw-r--r-- | camlibs/clicksmart310/clicksmart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/clicksmart310/clicksmart.c b/camlibs/clicksmart310/clicksmart.c index 434ae74c4..a867284c8 100644 --- a/camlibs/clicksmart310/clicksmart.c +++ b/camlibs/clicksmart310/clicksmart.c @@ -165,7 +165,7 @@ clicksmart_read_pic_data (CameraPrivateLibrary *priv, GPPort *port, remainder = size%0x200; GP_DEBUG("size: %x, remainder: %x\n", size, remainder); - *data = calloc(size,1); + *data = calloc(size + 0x100,1); if (!*data) return GP_ERROR; /* Download the data */ while (offset < size-remainder) { |