Skip to content

Commit

Permalink
adsp_config: fix name parsing error in parse_signed_pkg_ace_v1_5
Browse files Browse the repository at this point in the history
Fix name parsing error in parse_signed_pkg_ace_v1_5

Signed-off-by: Krzysztof Frydryk <krzysztofx.frydryk@intel.com>
  • Loading branch information
kfrydryx authored and lgirdwood committed May 26, 2022
1 parent fe4dcaa commit 8ba3d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adsp_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 8ba3d17

Please sign in to comment.