diff options
author | hexcoder- <heiko@hexco.de> | 2019-10-28 16:45:30 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-10-28 16:45:30 +0100 |
commit | 25443918c4ab15c4c1f9ba0861f5d48daa29a412 (patch) | |
tree | a4bf9e19bf0726f1e460def9beefe31eb5e92964 /libtokencap/libtokencap.so.c | |
parent | 80359685167309639562ece25a77782cb6ccfd54 (diff) | |
download | afl++-25443918c4ab15c4c1f9ba0861f5d48daa29a412.tar.gz |
silence some compiler warnings
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r-- | libtokencap/libtokencap.so.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libtokencap/libtokencap.so.c b/libtokencap/libtokencap.so.c index e1977127..820f5bc4 100644 --- a/libtokencap/libtokencap.so.c +++ b/libtokencap/libtokencap.so.c @@ -238,9 +238,9 @@ static void __tokencap_dump(const u8* ptr, size_t len, u8 is_text) { buf[pos] = 0; - write(__tokencap_out_file, "\"", 1); - write(__tokencap_out_file, buf, pos); - write(__tokencap_out_file, "\"\n", 2); + int wrt_ok = ( 1 == write(__tokencap_out_file, "\"", 1)); + wrt_ok &= (pos == write(__tokencap_out_file, buf, pos)); + wrt_ok &= (2 == write(__tokencap_out_file, "\"\n", 2)); } |