mirror of
https://github.com/mirror/wget.git
synced 2024-12-27 13:20:23 +08:00
* fuzz/main.c: Fix paths for WIN32
This commit is contained in:
parent
e3790ad2a3
commit
7da620c7ce
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user