* readelf.c (hex_dump): Fix transposed subtraction generating spaces.
2007-10-01 Roland McGrath <roland@redhat.com>
+ * readelf.c (hex_dump): Fix transposed subtraction generating spaces.
+
* readelf.c (hex_dump): Fix line header to be hex instead of decimal.
2007-09-10 Roland McGrath <roland@redhat.com>
printf ("%02x", data[pos + i]);
if (chunk < 16)
- printf ("%*s", (int) ((chunk - 16) * 2 + (chunk - 16) / 4), "");
+ printf ("%*s", (int) ((16 - chunk) * 2 + (16 - chunk) / 4), "");
for (size_t i = 0; i < chunk; ++i)
{