View | Details | Raw Unified | Return to bug 18750 | Differences between
and this patch

Collapse All | Expand All

(-)a/bfd/ihex.c (-1 / +1 lines)
Lines 220-226 ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error) Link Here
220
      char buf[10];
220
      char buf[10];
221
221
222
      if (! ISPRINT (c))
222
      if (! ISPRINT (c))
223
	sprintf (buf, "\\%03o", (unsigned int) c);
223
	sprintf (buf, "\\%03o", (unsigned int) (c & 0xff));
224
      else
224
      else
225
	{
225
	{
226
	  buf[0] = c;
226
	  buf[0] = c;
(-)a/bfd/srec.c (-2 / +1 lines)
Lines 251-257 srec_bad_byte (bfd *abfd, Link Here
251
      char buf[10];
251
      char buf[10];
252
252
253
      if (! ISPRINT (c))
253
      if (! ISPRINT (c))
254
	sprintf (buf, "\\%03o", (unsigned int) c);
254
	sprintf (buf, "\\%03o", (unsigned int) (c & 0xff));
255
      else
255
      else
256
	{
256
	{
257
	  buf[0] = c;
257
	  buf[0] = c;
258
- 

Return to bug 18750