From: Nathael Pajani Date: Sun, 15 Apr 2012 21:26:35 +0000 (+0200) Subject: isp_dump bug correction X-Git-Tag: v1.0~47 X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=622244eda08c4193af4c96408fa6d86499f4a3bb;p=soft%2Ftools%2Flpctools isp_dump bug correction --- diff --git a/isp_utils.c b/isp_utils.c index 3a858fc..8a01b67 100644 --- a/isp_utils.c +++ b/isp_utils.c @@ -30,6 +30,9 @@ void isp_dump(const unsigned char* buf, unsigned int buf_size) { unsigned int count = 0; char pass = 0; + if (buf_size == 0) { + return; + } while ((count < buf_size) || (pass == 0)) { if (count == buf_size) { while (count & 0x0F) {