aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 21:02:32 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-21 21:02:32 +0000
commit8c6167185d2bdaa325f933f87dd67c84a2bf7a83 (patch)
treece36528d302b4ebac33cbd13f62ca4d05f796a2e /main/asterisk.c
parentce93b3d1647a7eb6bb899bea22c78e7abd887fb8 (diff)
Extra NULLs in the output cause some terminal types to abort in the middle of
a color code, causing terminal weirdness. (closes issue #14130) Reported by: coolmig Patches: 20090121__bug14130.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76, coolmig git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@169722 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 8ef99c683..492af2d95 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -1832,6 +1832,7 @@ static int ast_el_read_char(EditLine *el, char *cp)
if (*tmp == 127) {
memmove(tmp, tmp + 1, strlen(tmp));
tmp--;
+ res--;
}
}