From a6aa9c1abdcd5ad7c315f0c5648e5624ed05d034 Mon Sep 17 00:00:00 2001 From: Kosh Date: Tue, 14 Jul 2015 11:31:33 +1000 Subject: [PATCH] Removed extra null byte from packing command --- SourceQuery/SourceRcon.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceQuery/SourceRcon.class.php b/SourceQuery/SourceRcon.class.php index 1bfaab6..c2fc518 100644 --- a/SourceQuery/SourceRcon.class.php +++ b/SourceQuery/SourceRcon.class.php @@ -66,7 +66,7 @@ public function Write( $Header, $String = '' ) { // Pack the packet together - $Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00\x00"; + $Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00"; // Prepend packet length $Command = Pack( 'V', StrLen( $Command ) ) . $Command;