summaryrefslogtreecommitdiff
path: root/camlibs/polaroid/pdc640.c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2003-02-11 07:33:22 +0000
committerMarcus Meissner <marcus@jet.franken.de>2003-02-11 07:33:22 +0000
commitf18eb6945795bab44625102ca1eb04a2bb3b4c76 (patch)
treeef64bccebbc2f656ba1d858bf83a70cf92fa8388 /camlibs/polaroid/pdc640.c
parent188f1a6837f34e5f7acc0add62a90e194fc82155 (diff)
downloadlibgphoto2-f18eb6945795bab44625102ca1eb04a2bb3b4c76.tar.gz
* pdc640.c: 1532 buffer -> 1536 or we overflow the stack.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6193 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/polaroid/pdc640.c')
-rw-r--r--camlibs/polaroid/pdc640.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/polaroid/pdc640.c b/camlibs/polaroid/pdc640.c
index 4b4bc331c..6b3c5bbb9 100644
--- a/camlibs/polaroid/pdc640.c
+++ b/camlibs/polaroid/pdc640.c
@@ -385,9 +385,9 @@ pdc640_unknown20 (GPPort* port)
static int
pdc640_caminfo (GPPort *port, int *numpic)
{
- char buf[1532];
+ char buf[1536];
- CHECK_RESULT (pdc640_transmit_packet (port, 0x40, buf, 1532));
+ CHECK_RESULT (pdc640_transmit_packet (port, 0x40, buf, 1536));
*numpic = buf[2]; /* thats the only useful info :( */
return (GP_OK);
}