diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-18 19:31:15 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-18 19:31:15 +0000 |
commit | 749a290f5f47473c550e7c23ab60673656209fa3 (patch) | |
tree | 7bbe9c727c44cc6a41cf4511e4e3963289f644ab /epan/dissectors/packet-clnp.c | |
parent | ebb5e461959b0372d8912963cb673644b0f1fe0e (diff) |
several times replacing:
sprintf -> g_snprintf
snprintf -> g_snprintf
vsnprintf -> g_vsnprintf
strdup -> g_strdup
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15412 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-clnp.c')
-rw-r--r-- | epan/dissectors/packet-clnp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-clnp.c b/epan/dissectors/packet-clnp.c index 117e9d0fa5..083c06ae50 100644 --- a/epan/dissectors/packet-clnp.c +++ b/epan/dissectors/packet-clnp.c @@ -416,16 +416,16 @@ static gchar *print_tsap(const guchar *tsap, int length) cur=ep_alloc(MAX_TSAP_LEN * 2 + 3); cur[0] = '\0'; if (length <= 0 || length > MAX_TSAP_LEN) - sprintf(cur, "<unsupported TSAP length>"); + g_snprintf(cur, MAX_TSAP_LEN * 2 + 3, "<unsupported TSAP length>"); else { allprintable = is_all_printable(tsap,length); if (!allprintable) strcat(cur,"0x"); while (length != 0) { if (allprintable) - sprintf(tmp, "%c", *tsap ++); + g_snprintf(tmp, sizeof(tmp), "%c", *tsap ++); else - sprintf(tmp, "%02x", *tsap ++); + g_snprintf(tmp, sizeof(tmp), "%02x", *tsap ++); strcat(cur, tmp); length --; } |