changeset 25846:c7ec8f3b39d3

I forgot about g_strlcpy in b14728379c16e92457492a7a4fc9a6b616e3fbe4.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 03 May 2009 23:18:28 +0000
parents 151004519917
children a81f75025e14 ab298d237562
files libpurple/protocols/oscar/family_oservice.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
 	/*