diff src/protocols/oscar/tlv.c @ 10990:8d74ae785a46

[gaim-migrate @ 12828] More compile warning getting rid of. Also fix the crash from my last batch of comile warning getting rid ofs. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Jun 2005 04:33:52 +0000
parents ecc0f22db510
children 1798ad0be460
line wrap: on
line diff
--- a/src/protocols/oscar/tlv.c	Thu Jun 09 04:15:22 2005 +0000
+++ b/src/protocols/oscar/tlv.c	Thu Jun 09 04:33:52 2005 +0000
@@ -472,7 +472,7 @@
  */
 faim_internal int aim_tlvlist_add_string(aim_tlvlist_t **list, const fu16_t type, const char *value)
 {
-	return aim_tlvlist_add_raw(list, type, strlen(value), (fu8_t)value);
+	return aim_tlvlist_add_raw(list, type, strlen(value), (fu8_t *)value);
 }
 
 /**
@@ -549,7 +549,7 @@
 
 	aimbs_put16(&bs, exchange);
 	aimbs_put8(&bs, strlen(roomname));
-	aimbs_putraw(&bs, roomname, strlen(roomname));
+	aimbs_putstr(&bs, roomname);
 	aimbs_put16(&bs, instance);
 
 	len = aim_tlvlist_add_raw(list, type, aim_bstream_curpos(&bs), buf);