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 219-225 ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error) Link Here
219
      char buf[10];
219
      char buf[10];
220
220
221
      if (! ISPRINT (c))
221
      if (! ISPRINT (c))
222
	sprintf (buf, "\\%03o", (unsigned int) c);
222
	sprintf (buf, "\\%03o", (unsigned int) c & 0xff);
223
      else
223
      else
224
	{
224
	{
225
	  buf[0] = c;
225
	  buf[0] = c;
(-)a/bfd/srec.c (-1 / +1 lines)
Lines 249-255 srec_bad_byte (bfd *abfd, Link Here
249
      char buf[40];
249
      char buf[40];
250
250
251
      if (! ISPRINT (c))
251
      if (! ISPRINT (c))
252
	sprintf (buf, "\\%03o", (unsigned int) c);
252
	sprintf (buf, "\\%03o", (unsigned int) c & 0xff);
253
      else
253
      else
254
	{
254
	{
255
	  buf[0] = c;
255
	  buf[0] = c;
(-)a/binutils/readelf.c (-2 / +1 lines)
Lines 14467-14473 process_mips_specific (FILE * file) Link Here
14467
	      len = sizeof (* eopt);
14467
	      len = sizeof (* eopt);
14468
	      while (len < option->size)
14468
	      while (len < option->size)
14469
		{
14469
		{
14470
		  char datum = * ((char *) eopt + offset + len);
14470
		  unsigned char datum = * ((unsigned char *) eopt + offset + len);
14471
14471
14472
		  if (ISPRINT (datum))
14472
		  if (ISPRINT (datum))
14473
		    printf ("%c", datum);
14473
		    printf ("%c", datum);
14474
- 

Return to bug 18750