1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 11:43:33 +02:00

Merge pull request #56 from Koshatul/master

Removed extra null byte from packing command
This commit is contained in:
Pavel Djundik
2015-07-14 19:27:13 +03:00
+1 -1
View File
@@ -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;