Skip to content

Commit

Permalink
bug: Fixing number of parameters in parsing master password ID
Browse files Browse the repository at this point in the history
The call to parse the input was missing a parameter for what units are allowed causing a build failure.

[#169]

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Nov 4, 2024
1 parent 7b4962b commit 2db1972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/C/openSeaChest/openSeaChest_Security.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ int main(int argc, char *argv[])
}
else if (strcmp(longopts[optionIndex].name, ATA_SECURITY_MASTER_PW_ID_LONG_OPT_STRING) == 0)
{
if (!get_And_Validate_Integer_Input_Uint16(optarg, M_NULLPTR, &ATA_SECURITY_MASTER_PW_ID))
if (!get_And_Validate_Integer_Input_Uint16(optarg, M_NULLPTR, ALLOW_UNIT_NONE, &ATA_SECURITY_MASTER_PW_ID))
{
print_Error_In_Cmd_Line_Args(ATA_SECURITY_MASTER_PW_ID_LONG_OPT_STRING, optarg);
exit(UTIL_EXIT_ERROR_IN_COMMAND_LINE);
Expand Down

0 comments on commit 2db1972

Please sign in to comment.