changeset 11161:2e71eddc828b

[gaim-migrate @ 13249] Small Yahoo! warning fixes. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 26 Jul 2005 04:49:50 +0000
parents 3adcad067e5f
children ccb38cf22483
files src/protocols/yahoo/yahoo_packet.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_packet.c	Tue Jul 26 04:42:53 2005 +0000
+++ b/src/protocols/yahoo/yahoo_packet.c	Tue Jul 26 04:49:50 2005 +0000
@@ -188,15 +188,15 @@
 
 	while (l) {
 		struct yahoo_pair *pair = l->data;
-		guchar buf[100];
+		gchar buf[100];
 
 		g_snprintf(buf, sizeof(buf), "%d", pair->key);
-		strcpy(data + pos, buf);
+		strcpy((char *)&data[pos], buf);
 		pos += strlen(buf);
 		data[pos++] = 0xc0;
 		data[pos++] = 0x80;
 
-		strcpy(data + pos, pair->value);
+		strcpy((char *)&data[pos], pair->value);
 		pos += strlen(pair->value);
 		data[pos++] = 0xc0;
 		data[pos++] = 0x80;