diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-08-18 19:31:15 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-08-18 19:31:15 +0000 |
commit | 994496a18467cfc04e6220e724d9482a48bc42bf (patch) | |
tree | 7bbe9c727c44cc6a41cf4511e4e3963289f644ab /epan/dissectors/packet-clnp.c | |
parent | e5af0106ac926d26a64713a64f7a176486611189 (diff) |
several times replacing:
sprintf -> g_snprintf
snprintf -> g_snprintf
vsnprintf -> g_vsnprintf
strdup -> g_strdup
svn path=/trunk/; revision=15412
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 --; } |