* fuzz/main.c: Fix paths for WIN32

This commit is contained in:
Tim Rühsen 2019-05-06 11:54:31 +02:00
parent e3790ad2a3
commit 7da620c7ce

View File

@ -88,10 +88,12 @@ int main(int argc, char **argv)
return system(cmd) != 0;
}
if ((target = strrchr(argv[0], SLASH)))
target = strrchr(target, '/');
else
if ((target = strrchr(argv[0], SLASH))) {
if (strrchr(target, '/'))
target = strrchr(target, '/');
} else
target = strrchr(argv[0], '/');
target = target ? target + 1 : argv[0];
if (strncmp(target, "lt-", 3) == 0)