Fixes a bug in the previous delat to tekhex.c which meant that valid tekhex files...
[binutils-gdb.git] / bfd / tekhex.c
index 9444117e5ffe83a4ec8e3dce83505ff7b893912d..94b47739f561675db231cb934f4b08e6c9ba9dcd 100644 (file)
@@ -288,7 +288,7 @@ getvalue (char **srcp, bfd_vma *valuep, char * endp)
 
   *srcp = src;
   *valuep = value;
-  return len == 0;
+  return len == -1U;
 }
 
 static bfd_boolean
@@ -309,7 +309,7 @@ getsym (char *dstp, char **srcp, unsigned int *lenp, char * endp)
   dstp[i] = 0;
   *srcp = src + i;
   *lenp = len;
-  return TRUE;
+  return i == len;
 }
 
 static struct data_struct *