pidgin.2.5.5.veracode: 1744a346: I forgot about g_strlcpy in b14728379c16...

datallah at pidgin.im datallah at pidgin.im
Thu May 14 17:35:45 EDT 2009


-----------------------------------------------------------------
Revision: 1744a346c5951c97b5d6ec102b49606f3dd918cc
Ancestor: c3e97f0c59047cf2f3d7502c6e8eae4070811408
Author: datallah at pidgin.im
Date: 2009-05-03T23:18:28
Branch: im.pidgin.pidgin.2.5.5.veracode
URL: http://d.pidgin.im/viewmtn/revision/info/1744a346c5951c97b5d6ec102b49606f3dd918cc

Modified files:
        libpurple/protocols/oscar/family_oservice.c

ChangeLog: 

I forgot about g_strlcpy in b14728379c16e92457492a7a4fc9a6b616e3fbe4.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_oservice.c	0725d2b0880fbcd1375894b18b3216765a1cf4ab
+++ libpurple/protocols/oscar/family_oservice.c	4efe28f9013adaedf35644308b7eba519097d027
@@ -151,8 +151,7 @@ aim_chat_join(OscarData *od, guint16 exc
 
 	memset(&csi, 0, sizeof(csi));
 	csi.exchange = exchange;
-	strncpy(csi.name, roomname, sizeof(csi.name) - 1);
-	csi.name[sizeof(csi.name) - 1] = '\0';
+	g_strlcpy(csi.name, roomname, sizeof(csi.name));
 	csi.instance = instance;
 
 	/*


More information about the Commits mailing list