Merge pull request #1794 from Andre-ARM/fiptool-fix

tools/fiptool: Fix UUID parsing in blob handling
This commit is contained in:
Antonio Niño Díaz 2019-01-29 13:43:29 +00:00 committed by GitHub
commit e0ace7f5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -271,10 +271,10 @@ static void uuid_from_str(uuid_t *u, const char *s)
&u->node[2], &u->node[3],
&u->node[4], &u->node[5]);
/*
* Given the format specifier above, we expect 11 items to be scanned
* Given the format specifier above, we expect 16 items to be scanned
* for a properly formatted UUID.
*/
if (n != 11)
if (n != 16)
log_errx("Invalid UUID: %s", s);
}