aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-19 23:25:33 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-19 23:25:33 +0000
commit5c2d7b2a9a77a49fc1cddea453a7e189b4851845 (patch)
tree0983c79f37e40ba82dbab520558fb36051f42da4 /input.c
parent8f6bc501d15e184ae8ab0cca2672be04cc04f9cb (diff)
downloadrtmux-5c2d7b2a9a77a49fc1cddea453a7e189b4851845.tar.gz
rtmux-5c2d7b2a9a77a49fc1cddea453a7e189b4851845.tar.bz2
rtmux-5c2d7b2a9a77a49fc1cddea453a7e189b4851845.zip
Don't send zero-length when we have a \0.
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 6d43c760..2442cc36 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.24 2007-10-19 10:21:33 nicm Exp $ */
+/* $Id: input.c,v 1.25 2007-10-19 23:25:33 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -246,7 +246,7 @@ void *
input_state_title_next(u_char ch, struct input_ctx *ictx)
{
if (ch == '\007') {
- ictx->title_buf[ictx->title_len] = '\0';
+ ictx->title_buf[ictx->title_len++] = '\0';
switch (ictx->title_type) {
case 0:
strlcpy(ictx->s->title,