diff libpurple/protocols/zephyr/zephyr.c @ 32228:5d442ea707b5

Replace numerous strcpy() invocations with strlcpy() in Zephyr. Thanks to the Electronic Frontier Foundation (http://www.eff.org/) for this patch.
author Ethan Blanton <elb@pidgin.im>
date Sun, 17 Jul 2011 03:57:21 +0000
parents 7c33eaed54e5
children c80ac2d937b7
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/zephyr.c	Sun Jul 17 03:56:39 2011 +0000
+++ b/libpurple/protocols/zephyr/zephyr.c	Sun Jul 17 03:57:21 2011 +0000
@@ -2235,7 +2235,7 @@
 		return NULL;
 	}
 
-	strcpy(buf, tmp);
+	g_strlcpy(buf, tmp, sizeof(buf));
 	g_free(tmp);
 
 	return buf;