From e320791e869391a8db972710171c82ab3b2a3d2f Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 13 Jan 2011 20:46:57 +0100 Subject: [PATCH] Fix a buffer overflow. --- src/zeagle_n2ition3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/zeagle_n2ition3.c b/src/zeagle_n2ition3.c index 8d9fa7e..a3208a6 100644 --- a/src/zeagle_n2ition3.c +++ b/src/zeagle_n2ition3.c @@ -129,7 +129,6 @@ zeagle_n2ition3_init (zeagle_n2ition3_device_t *device) { unsigned char answer[6 + 13] = {0}; unsigned char command[6] = {0x02, 0x01, 0x00, 0x41, 0xBF, 0x03}; - command[11] = ~checksum_add_uint8 (command + 3, 8, 0x00) + 1; return zeagle_n2ition3_packet (device, command, sizeof (command), answer, sizeof (answer)); }