summaryrefslogtreecommitdiff
path: root/camlibs/polaroid/pdc640.c
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/polaroid/pdc640.c')
-rw-r--r--camlibs/polaroid/pdc640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/polaroid/pdc640.c b/camlibs/polaroid/pdc640.c
index 146f4779a..1c84bbf14 100644
--- a/camlibs/polaroid/pdc640.c
+++ b/camlibs/polaroid/pdc640.c
@@ -511,7 +511,7 @@ pdc640_processtn (int width, int height, unsigned char **data, int size) {
int y;
/* Sanity checks */
- if ((data == NULL) || (size < width * height))
+ if ((data == NULL) || (size / width < height))
return (GP_ERROR_CORRUPTED_DATA);
/* Allocate a new buffer */