forked from osmocom/wireshark
remove one sprintf
svn path=/trunk/; revision=15555
This commit is contained in:
parent
d290708f0d
commit
88fbf06416
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ get_nbns_name(tvbuff_t *tvb, int offset, int nbns_data_offset,
|
||||||
/* NetBIOS names are supposed to be exactly 16 bytes long. */
|
/* NetBIOS names are supposed to be exactly 16 bytes long. */
|
||||||
if (pnbname - nbname != NETBIOS_NAME_LEN) {
|
if (pnbname - nbname != NETBIOS_NAME_LEN) {
|
||||||
/* It's not. */
|
/* It's not. */
|
||||||
sprintf(nbname, "Illegal NetBIOS name (%ld bytes long)",
|
g_snprintf(nbname, NBNAME_BUF_LEN, "Illegal NetBIOS name (%ld bytes long)",
|
||||||
(long)(pnbname - nbname));
|
(long)(pnbname - nbname));
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue