Package: fxload
Version: 0.0.20020411-1
Severity: normal
Tags: patch

When using the "-vvv" option to increase verbosity of fxload,
the lines read in from the hex file are modified in such a way
that they then fail a later length check, and the error 
"record too short?" is printed.  The below patch fixes the bug.

-jim

diff -urN fxload-0.0.20020411.orig/ezusb.c fxload-0.0.20020411/ezusb.c
--- fxload-0.0.20020411.orig/ezusb.c    2007-07-10 17:44:54.000000000 -0400
+++ fxload-0.0.20020411/ezusb.c 2007-07-10 17:50:59.000000000 -0400
@@ -319,10 +319,7 @@
        }
 
        if (verbose >= 3) {
-           cp = strchr (buf, '\n');
-           if (cp)
-               *cp = 0;
-           fprintf (stderr, "** LINE: %s\n", buf);
+           fprintf (stderr, "** LINE: %s", buf);
        }
 
        /* Read the length field (up to 16 bytes) */


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.21-2-686
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages fxload depends on:
ii  libc6                         2.5-9+b1   GNU C Library: Shared libraries

fxload recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to