Skip to content

Commit

Permalink
Devices/SPD: Fixed part number decoding for DDR2 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
ocerman authored and lpereira committed Mar 1, 2023
1 parent a4d72c8 commit 2834bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/devices/spd-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ static void decode_module_part_number(unsigned char *bytes, char *part_number) {
if (part_number) {
bytes += 8 + 64;

while (*bytes++ && *bytes >= 32 && *bytes < 127) { *part_number++ = *bytes; }
while (*++bytes && *bytes >= 32 && *bytes < 127) { *part_number++ = *bytes; }
*part_number = '\0';
}
}
Expand Down

0 comments on commit 2834bf9

Please sign in to comment.