diff -r 879db2a9a59c -r c31cf8de31cd libpurple/protocols/sametime/sametime.c --- a/libpurple/protocols/sametime/sametime.c Mon Feb 11 01:09:30 2013 -0800 +++ b/libpurple/protocols/sametime/sametime.c Mon Feb 11 01:11:47 2013 -0800 @@ -4977,7 +4977,7 @@ data. wtf? */ static char buf[BUF_LEN]; - strncpy(buf, id, sizeof(buf)); + g_strlcpy(buf, id, sizeof(buf)); return buf; }