adsp_config: fix name parsing error in parse_signed_pkg_ace_v1_5

Fix name parsing error in parse_signed_pkg_ace_v1_5

Signed-off-by: Krzysztof Frydryk <krzysztofx.frydryk@intel.com>
This commit is contained in:
Krzysztof Frydryk 2022-03-11 14:00:30 +01:00 committed by Liam Girdwood
parent fe4dcaa62c
commit 8ba3d17296
1 changed files with 2 additions and 2 deletions

View File

@ -1304,7 +1304,7 @@ static int parse_signed_pkg_ace_v1_5(const toml_table_t *toml, struct parse_ctx
out->ext_len = sizeof(struct signed_pkg_info_ext_ace_v1_5);
/* configurable fields */
parse_str_key(signed_pkg, &ctx, "name", (char *)out->name, sizeof(out->name), &ret);
parse_printable_key(signed_pkg, &ctx, "name", out->name, sizeof(out->name), &ret);
if (ret < 0)
return ret;
@ -1356,7 +1356,7 @@ static int parse_signed_pkg_ace_v1_5(const toml_table_t *toml, struct parse_ctx
/* non-configurable fields */
/* configurable fields */
parse_str_key(module, &ctx, "name", (char *)mod->name, sizeof(mod->name), &ret);
parse_printable_key(module, &ctx, "name", mod->name, sizeof(mod->name), &ret);
if (ret < 0)
return err_key_parse("module", NULL);