From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Mori Hess Date: Tue, 19 Oct 2004 00:03:56 +0000 Subject: [PATCH] fxload fix Message-Id: <200410182003.56103.fmhess@users.sourceforge.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_snFdBa+XOqVR9xX" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_b+ybBv0OXckQSSY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I've got a one-line patch attached for fxload. Without it, it chokes on Intel hex image files, unless you add a garbage character to the end of every line. I suppose using DOS instead of UNIX end of line characters in the firmware file would also avoid the bug. --Boundary-00=_snFdBa+XOqVR9xX Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Is fxload unmaintained? There haven't been any commits in 2 years, and I'm noticing a bug report from 3 months ago here http://sourceforge.net/tracker/index.php?func=detail&aid=994005&group_id=17679&atid=117679 that fixes the same problem I reported last week (patch attached again). --Boundary-00=_snFdBa+XOqVR9xX Content-Type: text/x-diff; charset="us-ascii"; name="ezusb_diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ezusb_diff" --- ezusb.c 2004-10-14 21:39:41.000000000 -0400 +++ ezusb-fixed.c 2004-10-14 21:40:27.000000000 -0400 @@ -361,7 +361,7 @@ return -3; } - if ((len * 2) + 11 >= strlen(buf)) { + if ((len * 2) + 11 > strlen(buf)) { fprintf (stderr, "record too short?\n"); return -4; } --Boundary-00=_snFdBa+XOqVR9xX-- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel