about summary refs log tree commit diff
path: root/utils/libtokencap/libtokencap.so.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-12-11 13:00:19 +0100
committerGitHub <noreply@github.com>2021-12-11 13:00:19 +0100
commit5ec91ad5291228f6ef6d9b69605a9b752ef28fa0 (patch)
tree03d433f881e6c49dbfd6e6093a6943937a07dec7 /utils/libtokencap/libtokencap.so.c
parent74aa826b60601eb59038bf61298b07eb20944caa (diff)
parent602eafc223d76987e447b431fc75903147a40c38 (diff)
downloadafl++-5ec91ad5291228f6ef6d9b69605a9b752ef28fa0.tar.gz
Merge pull request #1205 from yuawn/rename
rename active_paths
Diffstat (limited to 'utils/libtokencap/libtokencap.so.c')
-rw-r--r--utils/libtokencap/libtokencap.so.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/libtokencap/libtokencap.so.c b/utils/libtokencap/libtokencap.so.c
index 2b1e3903..0db044a1 100644
--- a/utils/libtokencap/libtokencap.so.c
+++ b/utils/libtokencap/libtokencap.so.c
@@ -171,7 +171,7 @@ static void __tokencap_load_mappings(void) {
   int mib[] = {CTL_VM, VM_PROC, VM_PROC_MAP, __tokencap_pid,
                sizeof(struct kinfo_vmentry)};
   #endif
-  char *buf, *low, *high;
+  char * buf, *low, *high;
   size_t miblen = sizeof(mib) / sizeof(mib[0]);
   size_t len;
 
@@ -345,11 +345,7 @@ static void __tokencap_dump(const u8 *ptr, size_t len, u8 is_text) {
   wrt_ok &= (pos == write(__tokencap_out_file, buf, pos));
   wrt_ok &= (2 == write(__tokencap_out_file, "\"\n", 2));
 
-  if (!wrt_ok) {
-
-    DEBUGF("%s", "writing to the token file failed\n");
-
-  }
+  if (!wrt_ok) { DEBUGF("%s", "writing to the token file failed\n"); }
 
 }