Skip to content

Commit 60b7798

Browse files
committed
Merge pull request #56 from Koshatul/master
Removed extra null byte from packing command
2 parents b234c0b + a6aa9c1 commit 60b7798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SourceQuery/SourceRcon.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function Open( )
6666
public function Write( $Header, $String = '' )
6767
{
6868
// Pack the packet together
69-
$Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00\x00";
69+
$Command = Pack( 'VV', ++$this->RconRequestId, $Header ) . $String . "\x00\x00";
7070

7171
// Prepend packet length
7272
$Command = Pack( 'V', StrLen( $Command ) ) . $Command;

0 commit comments

Comments
 (0)