Mercurial > pidgin
diff libpurple/protocols/mxit/roster.c @ 30288:d9e94339ca3b
For safety, rather use g_strlcpy() and snprintf() where possible.
author | andrew.victor@mxit.com |
---|---|
date | Mon, 19 Jul 2010 09:52:08 +0000 |
parents | d7325448badb |
children | 8c586dbcae2d |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/roster.c Mon Jul 19 08:56:03 2010 +0000 +++ b/libpurple/protocols/mxit/roster.c Mon Jul 19 09:52:08 2010 +0000 @@ -358,7 +358,7 @@ * So if this MXit contact isn't in a group, pretend it is. */ if ( *contact->groupname == '\0' ) { - strcpy( contact->groupname, MXIT_DEFAULT_GROUP ); + g_strlcpy( contact->groupname, MXIT_DEFAULT_GROUP, sizeof( contact->groupname ) ); } /* find or create a group for this contact */