[uim-commit] r622 - trunk/helper

ekato at freedesktop.org ekato at freedesktop.org
Thu Feb 10 03:26:26 PST 2005


Author: ekato
Date: 2005-02-10 03:26:23 -0800 (Thu, 10 Feb 2005)
New Revision: 622

Modified:
   trunk/helper/helper-candwin-gtk.c
Log:
* helper/helper-candwin-gtk.c (read_cb) : Use a bit larger buffer for
  read(2).


Modified: trunk/helper/helper-candwin-gtk.c
===================================================================
--- trunk/helper/helper-candwin-gtk.c	2005-02-10 08:00:07 UTC (rev 621)
+++ trunk/helper/helper-candwin-gtk.c	2005-02-10 11:26:23 UTC (rev 622)
@@ -531,13 +531,13 @@
 static gboolean
 read_cb(GIOChannel *channel, GIOCondition c, gpointer p)
 {
-  char buf[1024];
+  char buf[2048];
   int i = 0;
   int n;
   gchar **tmp;
   int fd = g_io_channel_unix_get_fd(channel);
 
-  n = read(fd, buf, 1024 - 1);
+  n = read(fd, buf, 2048 - 1);
   if (n == 0) {
     close(fd);
     exit(-1);



More information about the Uim-commit mailing list