summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorbviktor <bviktor@outlook.com>2012-11-04 09:31:46 -0800
committerbviktor <bviktor@outlook.com>2012-11-04 09:31:46 -0800
commit7873bfe211d6873c86a7dd1099c2d2f803790631 (patch)
tree850cf97afcfef8b23e2e21b50908d5b4a114c991 /src/common
parent04892cbbef60b0468667110ebdb7448bf183cb02 (diff)
parentb969665e470b862c3ecc38989a929773c602c38c (diff)
Merge pull request #227 from Arnavion/utf8-everywhere
utf8-everywhere part 3
Diffstat (limited to 'src/common')
-rw-r--r--src/common/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/text.c b/src/common/text.c
index 44cdeff8..2063174b 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));
@@ -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,