libedit-20110802-3.0-coverity.patch: fix a typo

This commit is contained in:
Kamil Dudka 2011-11-18 13:15:52 +01:00
parent b2b8e5d3e3
commit fe1b9e7ba1

View File

@ -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);