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

Removed extra null byte from packing command

This commit is contained in:
Kosh
2015-07-14 11:31:33 +10:00
parent b234c0b010
commit a6aa9c1abd
+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;