Kaynağa Gözat

Use ASCIIEncoding GetString overload that is supported on all target frameworks.

drieseng 9 yıl önce
ebeveyn
işleme
5deccd0c0e

+ 1 - 1
src/Renci.SshNet/Messages/Connection/GlobalRequestMessage.cs

@@ -18,7 +18,7 @@ namespace Renci.SshNet.Messages.Connection
         /// </value>
         public string RequestName
         {
-            get { return Ascii.GetString(_requestName); }
+            get { return Ascii.GetString(_requestName, 0, _requestName.Length); }
         }
 
         /// <summary>