From 6560e6365a438e690121331f7d6fdef08f60afda Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 4 Nov 2012 09:11:41 -0800 Subject: utf8-everywhere: Scrollback-loading code thought the first word of every message was part of the timestamp because of a missing space. --- src/common/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit 1.4.1 From b969665e470b862c3ecc38989a929773c602c38c Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 4 Nov 2012 09:27:15 -0800 Subject: utf8-everywhere: Fixed log_write to use access instead of g_access. --- src/common/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/text.c b/src/common/text.c index d8f61b8c..2063174b 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -705,7 +705,7 @@ log_write (session *sess, char *text) server_get_network (sess->server, FALSE)); if (file) { - if (access (file, F_OK) != 0) + if (g_access (file, F_OK) != 0) { close (sess->logfd); sess->logfd = log_open_file (sess->server->servername, sess->channel, -- cgit 1.4.1