summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2012-11-04 09:11:41 -0800
committerArnavion <arnavion@gmail.com>2012-11-04 09:11:41 -0800
commit6560e6365a438e690121331f7d6fdef08f60afda (patch)
treee189a7b9b7ef5e42adcf0ec0a8c530670cb82222 /src/common/text.c
parent6602e6a7c56448806d8a46ac10f85bb6d8deed71 (diff)
utf8-everywhere: Scrollback-loading code thought the first word of every message was part of the timestamp because of a missing space.
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 44cdeff8..d8f61b8c 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -228,7 +228,7 @@ scrollback_save (session *sess, char *text)
 
 	stamp = time (0);
 	if (sizeof (stamp) == 4)	/* gcc will optimize one of these out */
-		buf = g_strdup_printf ("T %d", (int) stamp);
+		buf = g_strdup_printf ("T %d ", (int) stamp);
 	else
 		buf = g_strdup_printf ("T %" G_GINT64_FORMAT " ", (gint64)stamp);
 	write (sess->scrollfd, buf, strlen (buf));