aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJoey Jiaojg <77719320+joeyjiaojg@users.noreply.github.com>2021-01-28 12:51:45 +0800
committerGitHub <noreply@github.com>2021-01-28 05:51:45 +0100
commit47f62eb0ca087bf26e79f2f0ce5935eda2599064 (patch)
treeb2b012f6c5408e38f963852a55f6eeabe7d3758a /utils
parent2044c7e2b548e2747fde5deff65c78dd05e2ec8d (diff)
downloadAFLplusplus-47f62eb0ca087bf26e79f2f0ce5935eda2599064.tar.gz
Fix dev branch for android (#710)
* android: replace rindex with strrchr * android: support 64bit only due to 128bit integer not supported by 32bit system Co-authored-by: joeyjiaojg@qq.com <joeyjiaojg@163.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/afl_untracer/afl-untracer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/afl_untracer/afl-untracer.c b/utils/afl_untracer/afl-untracer.c
index 695f8dd1..f3894a06 100644
--- a/utils/afl_untracer/afl-untracer.c
+++ b/utils/afl_untracer/afl-untracer.c
@@ -143,7 +143,7 @@ void read_library_information(void) {
b = buf;
m = index(buf, '-');
e = index(buf, ' ');
- if ((n = rindex(buf, '/')) == NULL) n = rindex(buf, ' ');
+ if ((n = strrchr(buf, '/')) == NULL) n = strrchr(buf, ' ');
if (n &&
((*n >= '0' && *n <= '9') || *n == '[' || *n == '{' || *n == '('))
n = NULL;