components/binutils/patches/srec.c.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Tue, 19 Jul 2016 15:22:15 +0200
changeset 6442 f900f128dbb9
parent 5110 92c73cda9414
permissions -rw-r--r--
23856628 problem in UTILITY/PERL

# Patch is from RedHat binutils-2.25.1 src rpm.
# No need to send to binutils, they know about it.
--- bfd/srec.c	2014-11-04 01:54:41.000000000 -0800
+++ bfd/srec.c	2015-11-14 22:32:41.094053576 -0800
@@ -249,7 +249,7 @@
       char buf[40];
 
       if (! ISPRINT (c))
-	sprintf (buf, "\\%03o", (unsigned int) c);
+	sprintf (buf, "\\%03o", (unsigned int) (c & 0xff));
       else
 	{
 	  buf[0] = c;