replace a strcpy with g_snprintf so it will not show up in grep strcpy *.c

svn path=/trunk/; revision=16236
This commit is contained in:
Ronnie Sahlberg 2005-10-16 00:33:00 +00:00
parent b5ecbaf8d5
commit 2cd5614407
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ atmarpnum_to_str(const guint8 *ad, int ad_tl)
if (ad_len > MAX_E164_STR_LEN) {
/* Can't show it all. */
memcpy(cur, ad, MAX_E164_STR_LEN);
strcpy(&cur[MAX_E164_STR_LEN], "...");
g_snprintf(&cur[MAX_E164_STR_LEN], 3+1, "...");
} else {
memcpy(cur, ad, ad_len);
cur[ad_len + 1] = '\0';