forked from osmocom/wireshark
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:
parent
b5ecbaf8d5
commit
2cd5614407
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue