aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-06-19 17:34:24 +0000
committerEvan Huus <eapache@gmail.com>2013-06-19 17:34:24 +0000
commita17358cf3ff18661e20577d5bba2bcc6bb08f734 (patch)
tree710c55cd2557197b9306aa7cc58e69b3590ecbbe /epan/wmem
parent608ad7b5b63ad6478804b1843d146853844b449c (diff)
Add wmem_strbuf_new_label as just a sized new for label lengths.
svn path=/trunk/; revision=50039
Diffstat (limited to 'epan/wmem')
-rw-r--r--epan/wmem/wmem_strbuf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/wmem/wmem_strbuf.h b/epan/wmem/wmem_strbuf.h
index 4b0f498c99..2541143ab8 100644
--- a/epan/wmem/wmem_strbuf.h
+++ b/epan/wmem/wmem_strbuf.h
@@ -54,6 +54,9 @@ wmem_strbuf_sized_new(wmem_allocator_t *allocator,
gsize alloc_len, gsize max_len)
G_GNUC_MALLOC;
+#define wmem_strbuf_new_label(ALLOCATOR) \
+ wmem_strbuf_sized_new((ALLOCATOR), 0, ITEM_LABEL_LENGTH)
+
WS_DLL_PUBLIC
wmem_strbuf_t *
wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str)