Fix wrong argument size passed to --parent-pid strncmp check

This PR fixes wrong size argument passed in `strncmp(arg, "--parent-pid", 10)` as the `"--parent-pid"` string has length of 12.

Closes #1502
This commit is contained in:
Disconnect3d 2020-04-13 16:12:18 +02:00 committed by Anel Husakovic
parent b7cfd19759
commit 280b158501

View file

@ -206,7 +206,7 @@ int main(int argc, const char** argv )
} else {
if (strcmp(arg, "--verbose") == 0)
verbose++;
else if (strncmp(arg, "--parent-pid", 10) == 0)
else if (strncmp(arg, "--parent-pid", 12) == 0)
{
/* Override parent_pid with a value provided by user */
const char* start;