summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-image-gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-image-gif.c')
-rw-r--r--epan/dissectors/packet-image-gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-image-gif.c b/epan/dissectors/packet-image-gif.c
index 7de1b92aa3..44de462d78 100644
--- a/epan/dissectors/packet-image-gif.c
+++ b/epan/dissectors/packet-image-gif.c
@@ -326,7 +326,7 @@ dissect_gif(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
if (tvb_len < 20)
return 0;
- str = tvb_get_ephemeral_string(tvb, 0, 6);
+ str = tvb_get_string(wmem_packet_scope(), tvb, 0, 6);
/* Check whether we're processing a GIF object */
/* see http://www.w3.org/Graphics/GIF/spec-gif89a.txt section 17 */
if (strcmp(str, "GIF87a") == 0) {