Commit 2c39a2b1 by Gary Benson Committed by Gary Benson

2007-02-16 Gary Benson <gbenson@redhat.com>

	* gnu/gcj/tools/gcj_dbtool/Main.java
	(bytesToString): Don't lose zeros from within the digest.

From-SVN: r122045
parent 01bc4081
2007-02-16 Gary Benson <gbenson@redhat.com>
* gnu/gcj/tools/gcj_dbtool/Main.java
(bytesToString): Don't lose zeros from within the digest.
2007-02-15 Andrew Haley <aph@redhat.com>
* Makefile.am (nat_source_files): Remove
......
......@@ -429,7 +429,12 @@ public class Main
StringBuffer hexBytes = new StringBuffer();
int length = b.length;
for (int i = 0; i < length; ++i)
hexBytes.append(Integer.toHexString(b[i] & 0xff));
{
int v = b[i] & 0xff;
if (v < 16)
hexBytes.append('0');
hexBytes.append(Integer.toHexString(v));
}
return hexBytes.toString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment