diff options
Diffstat (limited to 'epan/wmem/wmem_strbuf.c')
-rw-r--r-- | epan/wmem/wmem_strbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wmem/wmem_strbuf.c b/epan/wmem/wmem_strbuf.c index 8eb46d28a5..7fdc9b6adc 100644 --- a/epan/wmem/wmem_strbuf.c +++ b/epan/wmem/wmem_strbuf.c @@ -84,7 +84,7 @@ wmem_strbuf_new(wmem_allocator_t *allocator, const gchar *str) strbuf = wmem_strbuf_sized_new(allocator, alloc_len, 0); if (str && len > 0) { - g_strlcpy(strbuf->str, str, alloc_len); + (void) g_strlcpy(strbuf->str, str, alloc_len); strbuf->len = len; } @@ -141,7 +141,7 @@ wmem_strbuf_append(wmem_strbuf_t *strbuf, const gchar *str) wmem_strbuf_grow(strbuf, append_len); - g_strlcpy(&strbuf->str[strbuf->len], str, strbuf->max_len ? WMEM_STRBUF_RAW_ROOM(strbuf) : append_len+1); + (void) g_strlcpy(&strbuf->str[strbuf->len], str, strbuf->max_len ? WMEM_STRBUF_RAW_ROOM(strbuf) : append_len+1); strbuf->len = MIN(strbuf->len + append_len, strbuf->alloc_len - 1); } |