diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2018-01-02 12:11:08 +0100 |
---|---|---|
committer | Dario Lombardo <lomato@gmail.com> | 2018-01-02 14:47:33 +0000 |
commit | 5dc7ce6cccd8c4671ca609ae24cdb28c77ea811b (patch) | |
tree | be72b6c4ed6b847f4dbda40a3cfdff4198c93f75 /wsutil | |
parent | 9b4c96334d18dec20f19e4db174f2eef28d03522 (diff) |
ws_pipe: fix format error for size_t buffer_size
Fix error: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t'
Change-Id: I86ec4076bb7e8c11d5cf82187a46a528bf43c514
Reviewed-on: https://code.wireshark.org/review/25109
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/ws_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c index 9b19668a69..eddec9f4dc 100644 --- a/wsutil/ws_pipe.c +++ b/wsutil/ws_pipe.c @@ -107,7 +107,7 @@ ws_read_string_from_pipe(ws_pipe_handle read_pipe, gchar *buffer, if (buffer_bytes_remaining == 0) { /* The string won't fit in the buffer. */ - g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "Buffer too small (%ld).", buffer_size); + g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "Buffer too small (%zd).", buffer_size); buffer[buffer_size - 1] = '\0'; return FALSE; } |