summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-01-26 15:51:19 +0100
committerMarcus Meissner <marcus@jet.franken.de>2020-01-26 15:51:19 +0100
commitf86cce3d2ba40d0319312d67587264a63039795f (patch)
treeded2b514d373657f16f9f484fd3261e17ccac300
parentf2aaae4020177d399e625bcb43276524123afd54 (diff)
downloadlibgphoto2-f86cce3d2ba40d0319312d67587264a63039795f.tar.gz
round up the download size (AFL)
-rw-r--r--camlibs/clicksmart310/clicksmart.c2
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) {