diff src/protocols/oscar/admin.c @ 10986:ecc0f22db510

[gaim-migrate @ 12822] This gets rid of a fair number of signedness warnings with gcc4 -Wall committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Jun 2005 03:58:58 +0000
parents 6d3d8f11e765
children 1798ad0be460
line wrap: on
line diff
--- a/src/protocols/oscar/admin.c	Thu Jun 09 02:22:36 2005 +0000
+++ b/src/protocols/oscar/admin.c	Thu Jun 09 03:58:58 2005 +0000
@@ -17,7 +17,7 @@
  * 0x0011 - Email address
  * 0x0013 - Unknown
  *
- */ 
+ */
 faim_export int aim_admin_getinfo(aim_session_t *sess, aim_conn_t *conn, fu16_t info)
 {
 	aim_frame_t *fr;
@@ -110,11 +110,11 @@
 	snacid = aim_cachesnac(sess, 0x0007, 0x0004, 0x0000, NULL, 0);
 	aim_putsnac(&fr->data, 0x0007, 0x0004, 0x0000, snacid);
 
-	aim_tlvlist_add_raw(&tl, 0x0001, strlen(newnick), newnick);
-	
+	aim_tlvlist_add_string(&tl, 0x0001, newnick);
+
 	aim_tlvlist_write(&fr->data, &tl);
 	aim_tlvlist_free(&tl);
-	
+
 	aim_tx_enqueue(sess, fr);
 
 
@@ -138,10 +138,10 @@
 	aim_putsnac(&fr->data, 0x0007, 0x0004, 0x0000, snacid);
 
 	/* new password TLV t(0002) */
-	aim_tlvlist_add_raw(&tl, 0x0002, strlen(newpw), newpw);
+	aim_tlvlist_add_string(&tl, 0x0002, newpw);
 
 	/* current password TLV t(0012) */
-	aim_tlvlist_add_raw(&tl, 0x0012, strlen(curpw), curpw);
+	aim_tlvlist_add_string(&tl, 0x0012, curpw);
 
 	aim_tlvlist_write(&fr->data, &tl);
 	aim_tlvlist_free(&tl);
@@ -167,7 +167,7 @@
 	snacid = aim_cachesnac(sess, 0x0007, 0x0004, 0x0000, NULL, 0);
 	aim_putsnac(&fr->data, 0x0007, 0x0004, 0x0000, snacid);
 
-	aim_tlvlist_add_raw(&tl, 0x0011, strlen(newemail), newemail);
+	aim_tlvlist_add_string(&tl, 0x0011, newemail);
 	
 	aim_tlvlist_write(&fr->data, &tl);
 	aim_tlvlist_free(&tl);