diff options
author | 2017-01-21 08:25:30 +0000 | |
---|---|---|
committer | 2017-01-21 08:25:30 +0000 | |
commit | 9704b281e65e1189747652d0ba55eee892cff5f7 (patch) | |
tree | 00b11962b97f968a804b01aee08dc627d700b535 /gnu/lib/libreadline/input.c | |
parent | Nuke whitespace foolish enough to expose itself during the great (diff) | |
download | wireguard-openbsd-9704b281e65e1189747652d0ba55eee892cff5f7.tar.xz wireguard-openbsd-9704b281e65e1189747652d0ba55eee892cff5f7.zip |
Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.
Diffstat (limited to 'gnu/lib/libreadline/input.c')
-rw-r--r-- | gnu/lib/libreadline/input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/lib/libreadline/input.c b/gnu/lib/libreadline/input.c index 6bd58a07019..52eeb9b8e57 100644 --- a/gnu/lib/libreadline/input.c +++ b/gnu/lib/libreadline/input.c @@ -91,7 +91,7 @@ static int rl_gather_tyi PARAMS((void)); /* **************************************************************** */ /* */ -/* Character Input Buffering */ +/* Character Input Buffering */ /* */ /* **************************************************************** */ @@ -308,8 +308,8 @@ _rl_input_queued (t) void _rl_insert_typein (c) - int c; -{ + int c; +{ int key, t, i; char *string; @@ -489,7 +489,7 @@ _rl_read_mbchar (mbchar, size) memset(&ps, 0, sizeof (mbstate_t)); memset(&ps_back, 0, sizeof (mbstate_t)); - + while (mb_len < size) { RL_SETSTATE(RL_STATE_MOREINPUT); @@ -504,7 +504,7 @@ _rl_read_mbchar (mbchar, size) /* shorted bytes */ ps = ps_back; continue; - } + } else if (mbchar_bytes_length > (size_t)(0)) break; } |