mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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:
committed by
Anel Husakovic
parent
b7cfd19759
commit
280b158501
@ -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;
|
||||
|
Reference in New Issue
Block a user