]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
Apply patch from Julien Plissounneeau Dequène to fix network latency.
authorJordi Mallach <jordim@src.gnome.org>
Fri, 29 Apr 2005 06:45:53 +0000 (06:45 +0000)
committerJordi Mallach <jordim@src.gnome.org>
Fri, 29 Apr 2005 06:45:53 +0000 (06:45 +0000)
ChangeLog
NEWS
src/client.c

index 3c646b5a6811f981e278aac1b11bf0c0cd66f07a..f3385399ecc33518022bb78ffeae479492595de5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,16 @@
+2005-04-29  Jordi Mallach  <jordi@sindominio.net>
+
+       * src/client.c: Patch from Julien Plissonneau Duquène to
+       fix network latency.
+
+       * NEWS: pdate for 0.7.9.
+
 2005-04-15  Dani Carbonell  <bocata@panete.net>
 
-       * src/partyline.c: Applied patch from Julien Plissonneau Duquene which
+       * src/partyline.c: Applied patch from Julien Plissonneau Duquène which
        fixes a segfault in the channel list.
        
-       * NEWS: Update for 0.7.9..
+       * NEWS: Update for 0.7.9.
 
 2005-04-12  Jordi Mallach  <jordi@sindominio.net>
 
diff --git a/NEWS b/NEWS
index b74fb4c4d6049f02c57cb7b4cbf8ac68746d0e2d..69ad0c192dd7dd4d40be1f98f43c6482d6629298 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,7 +1,9 @@
 GTetrinet 0.7.9 - 2005-04-12
 - Revamped encoding of data handling, fixing the output in partyline, etc.
   when using UTF-8 locales (Vidar Holen).
-- Ported to use GtkAboutDialog (Pedro Villavicencio Garrido)
+- Ported to use GtkAboutDialog (Pedro Villavicencio Garrido).
+- Fixed network latency issues (Julien Plissonneau Duquène).
+- Fixed crashes in the channel list support (Julien Plissonneau Duquène).
 - New and updated translations: Traditional Chinese (GNOME HK Team),
   Canadian English (Adam Weinberger), Norwegian bokmål (Vidar Holen),
   Bulgarian (Yavor Doganov), Kinyarwanda (Steve Murphy).
index ba160821c0d856427f1af8ea614edba1bd260f48..97259b961dd3742289d735034ae3ea9ee0f381a3 100644 (file)
@@ -431,12 +431,14 @@ io_channel_cb (GIOChannel *source, GIOCondition condition)
 
 int client_sendmsg (char *str)
 {
-    char c = 0xFF;
+    gchar *buf;
     GError *error = NULL;
     
-    g_io_channel_write_chars (io_channel, str, -1, NULL, &error);
-    g_io_channel_write_chars (io_channel, &c, 1, NULL, &error);
+    buf = g_strdup(str);
+    buf[strlen(str)] = 0xFF;
+    g_io_channel_write_chars (io_channel, buf, strlen(str)+1, NULL, &error);
     g_io_channel_flush (io_channel, &error);
+    g_free(buf);
 
 #ifdef DEBUG
     printf ("> %s\n", str);