Skip to content

Commit

Permalink
Fix a sscanf format string.
Browse files Browse the repository at this point in the history
Was using %d instead of properly using %u.
  • Loading branch information
acpibob committed Feb 26, 2015
1 parent 46dc081 commit 84f3569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/os_specific/service_layers/oslinuxtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ OslTableNameFromFile (

if (isdigit ((int) Filename[ACPI_NAME_SIZE]))
{
sscanf (&Filename[ACPI_NAME_SIZE], "%d", Instance);
sscanf (&Filename[ACPI_NAME_SIZE], "%u", Instance);
}
else if (strlen (Filename) != ACPI_NAME_SIZE)
{
Expand Down

0 comments on commit 84f3569

Please sign in to comment.