components/binutils/patches/srec.c.patch
author Misaki Miyashita <Misaki.Miyashita@Oracle.COM>
Tue, 08 Dec 2015 14:36:41 -0800
changeset 5171 4e8b3c0ea78c
parent 5110 92c73cda9414
permissions -rw-r--r--
22307393 Upgrade OpenSSL version to 1.0.2e 22307570 problem in LIBRARY/OPENSSL 22307591 problem in LIBRARY/OPENSSL 22307596 problem in LIBRARY/OPENSSL 22307601 problem in LIBRARY/OPENSSL 22317607 problem in LIBRARY/OPENSSL

# 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;