From ff2c6620a1e24792280356893c4f05d199af783a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 8 Jun 2021 12:11:52 +0700 Subject: Update from bc-java --- crypto/src/util/io/pem/PemReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src') diff --git a/crypto/src/util/io/pem/PemReader.cs b/crypto/src/util/io/pem/PemReader.cs index b806c7f63..7e6252b9b 100644 --- a/crypto/src/util/io/pem/PemReader.cs +++ b/crypto/src/util/io/pem/PemReader.cs @@ -68,7 +68,7 @@ namespace Org.BouncyCastle.Utilities.IO.Pem int colonPos = line.IndexOf(':'); if (colonPos >= 0) { - string hdr = line.Substring(0, colonPos).Trim(); + string hdr = line.Substring(0, colonPos); string val = line.Substring(colonPos + 1).Trim(); headers.Add(new PemHeader(hdr, val)); -- cgit 1.5.1