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>
This commit is contained in:
Uli Heilmeier 2018-01-02 12:11:08 +01:00 committed by Dario Lombardo
parent 9b4c96334d
commit 5dc7ce6ccc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}