libedit-20110802-3.0-coverity.patch: fix a typo
This commit is contained in:
parent
b2b8e5d3e3
commit
fe1b9e7ba1
@ -79,7 +79,7 @@ index 494400d..7954858 100644
|
||||
Char visbuf[VISUAL_WIDTH_MAX +1];
|
||||
ssize_t vcnt = ct_visual_char(visbuf, VISUAL_WIDTH_MAX, c);
|
||||
+ if (vcnt < 0)
|
||||
+ vnct = 0;
|
||||
+ vcnt = 0;
|
||||
+
|
||||
visbuf[vcnt] = '\0';
|
||||
terminal_overwrite(el, visbuf, (size_t)vcnt);
|
||||
|
Loading…
Reference in New Issue
Block a user