Fix build break in MODE=asan

This commit is contained in:
Justine Tunney 2022-05-05 11:12:48 -07:00
parent c9f966d73c
commit 15c59e716f
2 changed files with 5 additions and 4 deletions

View file

@ -16,7 +16,6 @@
- Add CTRL-R search
- Support unlimited lines
- React to terminal resizing
- Don't generate .data section
- Support terminal flow control
- Make history loading 10x faster
- Make multiline mode the only mode
@ -686,8 +685,7 @@ int linenoiseEnableRawMode(int fd) {
return 0;
}
}
errno = ENOTTY;
return -1;
return enotty();
} else {
return 0;
}
@ -1603,6 +1601,7 @@ static size_t linenoiseEscape(char *d, const char *s, size_t n) {
unsigned c, w, l;
for (p = d, l = i = 0; i < n; ++i) {
switch ((c = s[i] & 255)) {
CASE('\e', w = READ16LE("\\e"));
CASE('\a', w = READ16LE("\\a"));
CASE('\b', w = READ16LE("\\b"));
CASE('\t', w = READ16LE("\\t"));