libpurple/protocols/sametime/sametime.c

branch
release-2.x.y
changeset 33745
c31cf8de31cd
parent 32049
c51421b3224e
child 33760
66611fba7197
child 33782
1690e0b2c508
equal deleted inserted replaced
33744:879db2a9a59c 33745:c31cf8de31cd
4975 /* code elsewhere assumes that the return value points to different 4975 /* code elsewhere assumes that the return value points to different
4976 memory than the passed value, but it won't free the normalized 4976 memory than the passed value, but it won't free the normalized
4977 data. wtf? */ 4977 data. wtf? */
4978 4978
4979 static char buf[BUF_LEN]; 4979 static char buf[BUF_LEN];
4980 strncpy(buf, id, sizeof(buf)); 4980 g_strlcpy(buf, id, sizeof(buf));
4981 return buf; 4981 return buf;
4982 } 4982 }
4983 4983
4984 4984
4985 static void mw_prpl_remove_group(PurpleConnection *gc, PurpleGroup *group) { 4985 static void mw_prpl_remove_group(PurpleConnection *gc, PurpleGroup *group) {

mercurial