Skip to content

Commit

Permalink
arch/x86/smbios.c: Strip leading spaces from CPU brand string
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Jul 25, 2024
1 parent 0921d59 commit 4dfd55f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/arch/x86/smbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ static int smbios_processor_name(u8 *start)
}
tmp[12] = 0;
str = (const char *)tmp;
/* Skip leading spaces. */
while (*str == ' ') str++;
}
}
return smbios_add_string(start, str);
Expand Down

0 comments on commit 4dfd55f

Please sign in to comment.