about summary refs log tree commit diff
path: root/include/alloc-inl.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-29 00:58:05 +0200
committervan Hauser <vh@thc.org>2020-06-29 00:58:05 +0200
commite5e485fcdb039fc77842b0753a4adf42d6063388 (patch)
treea8b52645422ac6b75cbd3dd648af865112fdf66f /include/alloc-inl.h
parent16f3df7cc6c429e302af2c21ecd5eb6ba9a58c6b (diff)
downloadafl++-e5e485fcdb039fc77842b0753a4adf42d6063388.tar.gz
fix autodict
Diffstat (limited to 'include/alloc-inl.h')
-rw-r--r--include/alloc-inl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/alloc-inl.h b/include/alloc-inl.h
index decc2d43..832b2de4 100644
--- a/include/alloc-inl.h
+++ b/include/alloc-inl.h
@@ -170,10 +170,10 @@ static inline u8 *DFL_ck_strdup(u8 *str) {
   size = strlen((char *)str) + 1;
 
   ALLOC_CHECK_SIZE(size);
-  ret = (u8*) malloc(size);
+  ret = (u8 *)malloc(size);
   ALLOC_CHECK_RESULT(ret, size);
 
-  return (u8*)memcpy(ret, str, size);
+  return (u8 *)memcpy(ret, str, size);
 
 }
 
@@ -204,7 +204,7 @@ static inline u8 *DFL_ck_memdup_str(u8 *mem, u32 size) {
   if (!mem || !size) { return NULL; }
 
   ALLOC_CHECK_SIZE(size);
-  ret = (u8*) malloc(size + 1);
+  ret = (u8 *)malloc(size + 1);
   ALLOC_CHECK_RESULT(ret, size);
 
   memcpy(ret, mem, size);