Fix an incorrect conversion specifier in the discover_class code.
Signed-off-by: Eamon Walsh <ewalsh@tycho.nsa.gov>
This commit is contained in:
parent
46d0b2c939
commit
b27ff3397d
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ static struct discover_class_node * discover_class(const char *s)
|
|||
if (ret < 0)
|
||||
goto err3;
|
||||
|
||||
if (sscanf(buf, "%u", (unsigned int*)&node->value) != 1)
|
||||
if (sscanf(buf, "%hu", &node->value) != 1)
|
||||
goto err3;
|
||||
|
||||
/* load up permission indicies */
|
||||
|
|
Loading…
Reference in a new issue