diff options
author | Evan Huus <eapache@gmail.com> | 2013-06-17 14:18:23 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-06-17 14:18:23 +0000 |
commit | b777bc825e7c50def809ce9b0210d2473ef54557 (patch) | |
tree | 671c6a9671b66230b49bf95d1452e64b1872be01 /epan/dissectors/packet-http-urlencoded.c | |
parent | 68a8a3ced5ad425c90a5fcb81521adfbebbd6c57 (diff) |
Misc tweaks to packet-http-urlencoded.c
- add modelines
- convert emem to wmem
- add cast to satisfy my version of GCC
svn path=/trunk/; revision=49982
Diffstat (limited to 'epan/dissectors/packet-http-urlencoded.c')
-rw-r--r-- | epan/dissectors/packet-http-urlencoded.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http-urlencoded.c b/epan/dissectors/packet-http-urlencoded.c index 8195113297..6749fcde2e 100644 --- a/epan/dissectors/packet-http-urlencoded.c +++ b/epan/dissectors/packet-http-urlencoded.c @@ -28,6 +28,7 @@ #include <epan/packet.h> #include <epan/strutil.h> +#include <epan/wmem/wmem.h> static gint proto_urlencoded = -1; @@ -83,7 +84,7 @@ get_form_key_value(tvbuff_t *tvb, char **ptr, int offset, char stop) offset++; } - *ptr = tmp = ep_alloc(len + 1); + *ptr = tmp = (char*)wmem_alloc(wmem_packet_scope(), len + 1); tmp[len] = '\0'; len = 0; @@ -217,3 +218,16 @@ proto_reg_handoff_http_urlencoded(void) dissector_add_string("media_type", "application/x-www-form-urlencoded", form_urlencoded_handle); } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ |