[uim-commit] r811 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Thu Mar 24 23:38:15 PST 2005


Author: ekato
Date: 2005-03-24 23:38:11 -0800 (Thu, 24 Mar 2005)
New Revision: 811

Modified:
   trunk/uim/uim-helper-client.c
Log:
* uim/uim-helper-client.c (uim_helper_read_proc) : Don't call
  uim_helper_buffer_append() with rc -1.


Modified: trunk/uim/uim-helper-client.c
===================================================================
--- trunk/uim/uim-helper-client.c	2005-03-24 14:25:15 UTC (rev 810)
+++ trunk/uim/uim-helper-client.c	2005-03-25 07:38:11 UTC (rev 811)
@@ -171,8 +171,9 @@
     if (rc == 0 || (rc < 0 && errno != EAGAIN)) {
       uim_helper_close_client_fd(fd);
       return;
+    } else if (rc > 0) {
+      uim_read_buf = uim_helper_buffer_append(uim_read_buf, uim_recv_buf, rc);
     }
-    uim_read_buf = uim_helper_buffer_append(uim_read_buf, uim_recv_buf, rc);
   }
 }
 



More information about the Uim-commit mailing list