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]>
(cherry picked from commit a3f644b)
  • Loading branch information
kevans91 committed Jan 28, 2024
1 parent eead76b commit b558904
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 b558904

Please sign in to comment.