[gaim-migrate @ 13249]

Tue, 26 Jul 2005 04:49:50 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Tue, 26 Jul 2005 04:49:50 +0000
changeset 11161
f9272f277000
parent 11160
c216000381d7
child 11162
9ffb3ec6ce59

[gaim-migrate @ 13249]
Small Yahoo! warning fixes.

src/protocols/yahoo/yahoo_packet.c file | annotate | diff | comparison | revisions
--- 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;

mercurial