Trim NUL bytes from rcon output, fixes #51

pull/56/head
xPaw 10 years ago
parent 0e55dddae8
commit e95be546f1

@ -162,9 +162,7 @@
while( true );
}
// TODO: It should use GetString, but there are no null bytes at the end, why?
// $Buffer = $this->Buffer->GetString( );
return $Buffer;
return rtrim( $Buffer, "\0" );
}
public function Authorize( $Password )

Loading…
Cancel
Save