diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-19 23:25:33 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-19 23:25:33 +0000 |
commit | 5c2d7b2a9a77a49fc1cddea453a7e189b4851845 (patch) | |
tree | 0983c79f37e40ba82dbab520558fb36051f42da4 /input.c | |
parent | 8f6bc501d15e184ae8ab0cca2672be04cc04f9cb (diff) | |
download | rtmux-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |