Skip to content

Commit

Permalink
lib: fix _POSIX_VDISABLE
Browse files Browse the repository at this point in the history
We end up clobbering it later because the final `cc` assignments were only
meant to be done if we've decided that len  == 2.

Signed-off-by: Kyle Evans <[email protected]>
  • Loading branch information
kevans91 committed Jan 27, 2024
1 parent ca692e3 commit a3f644b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/core/orch_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ orchlua_term_update_cc(lua_State *L, struct termios *term)
"cntrl char for cc '%s' out of bounds: %c",
iter->cntrl_name, str[1]);
return (2);
} else {
if (str[1] == '?')
cc = 0177;
else
cc = str[1] - 0x40;
}

if (str[1] == '?')
cc = 0177;
else
cc = str[1] - 0x40;
}

term->c_cc[iter->cntrl_idx] = cc;
Expand Down

0 comments on commit a3f644b

Please sign in to comment.