aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-afs.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-25 11:43:30 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-25 11:43:30 +0000
commit1bf35eeccc8c59ed9874cb96348966da281b0853 (patch)
treea19835aec094d07536c6def639d5d5d236f0a1cd /epan/dissectors/packet-afs.c
parentf2743805ede691924d8f265a2e8ee489116370fb (diff)
From Jakub Zawadzki:
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-afs.c')
-rw-r--r--epan/dissectors/packet-afs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c
index d209d427dc..3dcd760efa 100644
--- a/epan/dissectors/packet-afs.c
+++ b/epan/dissectors/packet-afs.c
@@ -2627,9 +2627,8 @@ dissect_vldb_reply(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int o
for (i=0; i<8; i++)
{
char *part;
- part=ep_alloc(8);
j = tvb_get_ntohl(tvb, offset);
- g_snprintf(part, 8, "/vicepa");
+ part=ep_strdup("/vicepa");
if ( i<nservers && j<=25 )
{
part[6] = 'a' + (char) j;
@@ -2675,9 +2674,8 @@ dissect_vldb_reply(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int o
for (i=0; i<13; i++)
{
char *part;
- part=ep_alloc(8);
j = tvb_get_ntohl(tvb, offset);
- g_snprintf(part, 8, "/vicepa");
+ part=ep_strdup("/vicepa");
if ( i<nservers && j<=25 )
{
part[6] = 'a' + (char) j;
@@ -2724,9 +2722,8 @@ dissect_vldb_reply(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int o
for (i=0; i<13; i++)
{
char *part;
- part=ep_alloc(8);
j = tvb_get_ntohl(tvb, offset);
- g_snprintf(part, 8, "/vicepa");
+ part=ep_strdup("/vicepa");
if ( i<nservers && j<=25 )
{
part[6] = 'a' + (char) j;