mosh-server.cc: compare like types.
Fixes #626 (resize not working) introduced by 543f346a
This commit is contained in:
@@ -587,7 +587,7 @@ static void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &
|
|||||||
for ( size_t i = 0; i < us.size(); i++ ) {
|
for ( size_t i = 0; i < us.size(); i++ ) {
|
||||||
const Parser::Action *action = us.get_action( i );
|
const Parser::Action *action = us.get_action( i );
|
||||||
terminal_to_host += terminal.act( action );
|
terminal_to_host += terminal.act( action );
|
||||||
if ( typeid( action ) == typeid( Parser::Resize ) ) {
|
if ( typeid( *action ) == typeid( Parser::Resize ) ) {
|
||||||
/* tell child process of resize */
|
/* tell child process of resize */
|
||||||
const Parser::Resize *res = static_cast<const Parser::Resize *>( us.get_action( i ) );
|
const Parser::Resize *res = static_cast<const Parser::Resize *>( us.get_action( i ) );
|
||||||
struct winsize window_size;
|
struct winsize window_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user