[uim-commit] r674 - trunk/helper

ekato at freedesktop.org ekato at freedesktop.org
Fri Feb 18 17:56:55 PST 2005


Author: ekato
Date: 2005-02-18 17:56:52 -0800 (Fri, 18 Feb 2005)
New Revision: 674

Modified:
   trunk/helper/helper-candwin-gtk.c
Log:
* helper/helper-candwin-gtk.c (read_cb) : Use slightly larger
  buffer for IPC (SKK-JISYO.L's "kou" entry has 240 candidates).



Modified: trunk/helper/helper-candwin-gtk.c
===================================================================
--- trunk/helper/helper-candwin-gtk.c	2005-02-18 16:57:31 UTC (rev 673)
+++ trunk/helper/helper-candwin-gtk.c	2005-02-19 01:56:52 UTC (rev 674)
@@ -528,16 +528,17 @@
   g_strfreev(tmp);
 }
 
+#define CANDIDATE_BUFFER_SIZE	4096
 static gboolean
 read_cb(GIOChannel *channel, GIOCondition c, gpointer p)
 {
-  char buf[2048];
+  char buf[CANDIDATE_BUFFER_SIZE];
   int i = 0;
   int n;
   gchar **tmp;
   int fd = g_io_channel_unix_get_fd(channel);
 
-  n = read(fd, buf, 2048 - 1);
+  n = read(fd, buf, CANDIDATE_BUFFER_SIZE - 1);
   if (n == 0) {
     close(fd);
     exit(-1);



More information about the Uim-commit mailing list