mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Merge pull request #88 from Cyberboss/offby1
Fixes topic return off by one error
This commit is contained in:
@@ -127,7 +127,7 @@ namespace TGServerService
|
||||
topicSender.Receive(returnedData);
|
||||
var raw_string = Encoding.ASCII.GetString(returnedData).TrimEnd(new char[] { (char)0 }).Trim();
|
||||
if (raw_string.Length > 6)
|
||||
returnedString = raw_string.Substring(5, raw_string.Length - 6).Trim();
|
||||
returnedString = raw_string.Substring(5, raw_string.Length - 5).Trim();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user