diff --git a/cmd-new-session.c b/cmd-new-session.c index 53800eda..857163cb 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.55 2009-08-16 19:16:27 tcunha Exp $ */ +/* $Id: cmd-new-session.c,v 1.56 2009-08-19 14:32:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -213,8 +213,8 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx) tio.c_oflag = TTYDEF_OFLAG; tio.c_lflag = TTYDEF_LFLAG; tio.c_cflag = TTYDEF_CFLAG; - tio.c_ispeed = TTYDEF_SPEED; - tio.c_ospeed = TTYDEF_SPEED; + cfsetispeed(&tio, TTYDEF_SPEED); + cfsetospeed(&tio, TTYDEF_SPEED); /* Create the new session. */ idx = -1 - options_get_number(&global_s_options, "base-index");