I forgot about g_strlcpy in 3d3f63414473d19a9f2eb0cdeab673cde67dbda9. release-2.5.5.veracode

Sun, 03 May 2009 23:18:28 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Sun, 03 May 2009 23:18:28 +0000
branch
release-2.5.5.veracode
changeset 25700
1c47af7fda59
parent 25699
f425c94ef860
child 25749
721111ae1000
child 27112
566e9c9fe1df

I forgot about g_strlcpy in 3d3f63414473d19a9f2eb0cdeab673cde67dbda9.

libpurple/protocols/oscar/family_oservice.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/oscar/family_oservice.c	Sat May 02 19:50:13 2009 +0000
+++ b/libpurple/protocols/oscar/family_oservice.c	Sun May 03 23:18:28 2009 +0000
@@ -151,8 +151,7 @@
 
 	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;
 
 	/*

mercurial