mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01: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:
parent
b7cfd19759
commit
280b158501
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue