diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-18 19:21:42 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-19 01:23:31 +0000 |
commit | 0e50979b3f45250ee1dacd5c826a281ad9a9c460 (patch) | |
tree | cfaf2f2221f9ebd948fab14b180cd3219dcc3523 /sync_pipe_write.c | |
parent | b4eddd32c18816b7b5f9e074b88559d88f28123c (diff) |
Replace g_assert() with ws_assert()
Diffstat (limited to 'sync_pipe_write.c')
-rw-r--r-- | sync_pipe_write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sync_pipe_write.c b/sync_pipe_write.c index b40cd98d91..1400281e5a 100644 --- a/sync_pipe_write.c +++ b/sync_pipe_write.c @@ -14,6 +14,7 @@ #include <glib.h> #include <wsutil/file_util.h> +#include <wsutil/ws_assert.h> #include "sync_pipe.h" @@ -28,7 +29,7 @@ pipe_write_header(int pipe_fd, char indicator, int length) guchar header[1+3]; /* indicator + 3-byte len */ - g_assert(length <= SP_MAX_MSG_LEN); + ws_assert(length <= SP_MAX_MSG_LEN); /* write header (indicator + 3-byte len) */ header[0] = indicator; |