forked from osmocom/wireshark
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:
parent
9b4c96334d
commit
5dc7ce6ccc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue