changeset 22442:8460fd4c9b59

When Andrew was working on the memleak fixes, he pondered why buffer was declared as: char *buffer[16]; I changed it to char buffer[64] because 64 is 4 * 16 (I think? Someone should double check since I got 256 the first try). I don't know if 16 is a more proper buffer size, but changing it to 64 should make it behave more or less the same.
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 09 Mar 2008 21:42:27 +0000
parents c2b9399d95b2
children 40ea7360d78d
files libpurple/protocols/irc/dcc_send.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/irc/dcc_send.c	Sun Mar 09 21:34:32 2008 +0000
+++ b/libpurple/protocols/irc/dcc_send.c	Sun Mar 09 21:42:27 2008 +0000
@@ -179,7 +179,7 @@
 {
 	PurpleXfer *xfer = data;
 	struct irc_xfer_send_data *xd = xfer->data;
-	char *buffer[16];
+	char buffer[64];
 	int len;
 
 	len = read(source, buffer, sizeof(buffer));