summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {