Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhauser-thc committed Jun 20, 2022
1 parent 5ed993d commit 1a4c0d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ cc_binary {
srcs: [
"src/afl-fuzz*.c",
"src/afl-common.c",
"src/afl-forkserver.c",
"src/afl-sharedmem.c",
"src/afl-forkserver.c",
"src/afl-performance.c",
Expand Down
2 changes: 1 addition & 1 deletion src/afl-cc.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s/clang",
LLVM_BINDIR);
else
snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN);
snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s", CLANG_BIN);
alt_cc = llvm_fullpath;

}
Expand Down
10 changes: 7 additions & 3 deletions src/afl-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@

#include <stdlib.h>
#include <stdio.h>
#define _GNU_SOURCE
#define __USE_GNU
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <string.h>
#include <strings.h>
#include <math.h>
Expand Down Expand Up @@ -718,7 +722,7 @@ char *get_afl_env(char *env) {
if ((val = getenv(env))) {

if (*val) {

if (!be_quiet) {

OKF("Enabled environment variable %s with value %s", env, val);
Expand Down

0 comments on commit 1a4c0d2

Please sign in to comment.