Merge pull request #367 from devnexen/example_network_build_fix

Build fix proposal mainly for Android which did not bother
This commit is contained in:
van Hauser 2020-05-18 22:51:15 +02:00 committed by GitHub
commit c7b1ed2395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ int main(int argc, char *argv[]) {
}
if ((interface = index(argv[1], '%')) != NULL) *interface++ = 0;
if ((interface = strchr(argv[1], '%')) != NULL) *interface++ = 0;
if (argc > 3)
if ((max_len = atoi(argv[3])) < 0)