Fix subsystems sublabels (#14843)

This commit is contained in:
Bobby Smith 2023-01-13 04:48:02 +01:00 committed by GitHub
parent 52f34ee78f
commit 06c3cd80aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -1381,9 +1381,10 @@ static int action_bind_sublabel_subsystem_load(
unsigned j = 0; unsigned j = 0;
char buf[4096]; char buf[4096];
buf[0] = '\0';
for (j = 0; j < content_get_subsystem_rom_id(); j++) for (j = 0; j < content_get_subsystem_rom_id(); j++)
{ {
strlcat(buf, " ", sizeof(buf));
strlcat(buf, path_basename(content_get_subsystem_rom(j)), sizeof(buf)); strlcat(buf, path_basename(content_get_subsystem_rom(j)), sizeof(buf));
if (j != content_get_subsystem_rom_id() - 1) if (j != content_get_subsystem_rom_id() - 1)
strlcat(buf, "\n", sizeof(buf)); strlcat(buf, "\n", sizeof(buf));