gnome-mud r772 - in trunk: . src
- From: lharris svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-mud r772 - in trunk: . src
- Date: Fri, 27 Feb 2009 17:06:06 +0000 (UTC)
Author: lharris
Date: Fri Feb 27 17:06:05 2009
New Revision: 772
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=772&view=rev
Log:
Reverted MCCP code.
Modified:
trunk/ChangeLog
trunk/src/mud-telnet-mccp.c
Modified: trunk/src/mud-telnet-mccp.c
==============================================================================
--- trunk/src/mud-telnet-mccp.c (original)
+++ trunk/src/mud-telnet-mccp.c Fri Feb 27 17:06:05 2009
@@ -55,22 +55,21 @@
if(zstatus == Z_OK)
{
- ret = g_string_append_len(ret,
- telnet->compress_out_buf,
- (4096 - telnet->compress_out->avail_out));
+ for(i = 0; i < (4096 - telnet->compress_out->avail_out); ++i)
+ ret = g_string_append_c(ret,
+ (gchar)telnet->compress_out_buf[i]);
continue;
}
if(zstatus == Z_STREAM_END)
{
- ret = g_string_append_len(ret,
- telnet->compress_out_buf,
- (4096 - telnet->compress_out->avail_out));
+ for(i = 0; i < (4096 - telnet->compress_out->avail_out); ++i)
+ ret = g_string_append_c(ret, (gchar)telnet->compress_out_buf[i]);
if(telnet->compress_out->avail_in > 0)
- ret = g_string_append_len(ret,
- telnet->compress_out->next_in,
- telnet->compress_out->avail_in);
+ for(i = 0; i < telnet->compress_out->avail_in; ++i)
+ ret = g_string_append_c(ret,
+ (gchar)telnet->compress_out->next_in[i]);
inflateEnd(telnet->compress_out);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]