about summary refs log tree commit diff
path: root/libtokencap/libtokencap.so.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-10-28 16:45:30 +0100
committerhexcoder- <heiko@hexco.de>2019-10-28 16:45:30 +0100
commit25443918c4ab15c4c1f9ba0861f5d48daa29a412 (patch)
treea4bf9e19bf0726f1e460def9beefe31eb5e92964 /libtokencap/libtokencap.so.c
parent80359685167309639562ece25a77782cb6ccfd54 (diff)
downloadafl++-25443918c4ab15c4c1f9ba0861f5d48daa29a412.tar.gz
silence some compiler warnings
Diffstat (limited to 'libtokencap/libtokencap.so.c')
-rw-r--r--libtokencap/libtokencap.so.c6
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));
 
 }