gnome-mud r764 - in trunk: . src ui
- From: lharris svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-mud r764 - in trunk: . src ui
- Date: Fri, 27 Feb 2009 14:56:54 +0000 (UTC)
Author: lharris
Date: Fri Feb 27 14:56:54 2009
New Revision: 764
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=764&view=rev
Log:
Replaced character iteration with g_string_append_len.
Modified:
trunk/ChangeLog
trunk/src/mud-telnet-mccp.c
trunk/ui/prefs.glade
Modified: trunk/src/mud-telnet-mccp.c
==============================================================================
--- trunk/src/mud-telnet-mccp.c (original)
+++ trunk/src/mud-telnet-mccp.c Fri Feb 27 14:56:54 2009
@@ -55,21 +55,22 @@
if(zstatus == Z_OK)
{
- for(i = 0; i < (4096 - telnet->compress_out->avail_out); ++i)
- ret = g_string_append_c(ret,
- (gchar)telnet->compress_out_buf[i]);
+ ret = g_string_append_len(ret,
+ telnet->compress_out_buf,
+ (4096 - telnet->compress_out->avail_out));
continue;
}
if(zstatus == Z_STREAM_END)
{
- for(i = 0; i < (4096 - telnet->compress_out->avail_out); ++i)
- ret = g_string_append_c(ret, (gchar)telnet->compress_out_buf[i]);
+ ret = g_string_append_len(ret,
+ telnet->compress_out_buf,
+ (4096 - telnet->compress_out->avail_out));
if(telnet->compress_out->avail_in > 0)
- for(i = 0; i < telnet->compress_out->avail_in; ++i)
- ret = g_string_append_c(ret,
- (gchar)telnet->compress_out->next_in[i]);
+ ret = g_string_append_len(ret,
+ telnet->compress_out->next_in,
+ telnet->compress_out->avail_in);
inflateEnd(telnet->compress_out);
Modified: trunk/ui/prefs.glade
==============================================================================
--- trunk/ui/prefs.glade (original)
+++ trunk/ui/prefs.glade Fri Feb 27 14:56:54 2009
@@ -34,6 +34,7 @@
</child>
</widget>
<packing>
+ <property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]