summaryrefslogtreecommitdiff
path: root/src/termios/cfsetospeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/termios/cfsetospeed.c')
-rw-r--r--src/termios/cfsetospeed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/termios/cfsetospeed.c b/src/termios/cfsetospeed.c
index 9c11b4d8..93e53c61 100644
--- a/src/termios/cfsetospeed.c
+++ b/src/termios/cfsetospeed.c
@@ -21,7 +21,8 @@ int cfsetospeed(struct termios *termios_p, speed_t speed)
case B9600:
case B19200:
case B38400:
- termios_p->c_oflag = speed; /* FIXME */
+ termios_p->c_oflag &= ~B38400;
+ termios_p->c_oflag |= speed;
return 0;
default: