aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,