Chameleon

Chameleon Commit Details

Date:2014-02-02 16:49:45 (10 years 2 months ago)
Author:ErmaC
Commit:2371
Parents: 2370
Message:Fix bug in setSMBStringForField function. (Bungo)
Changes:
M/trunk/i386/libsaio/smbios.c

File differences

trunk/i386/libsaio/smbios.c
787787
788788
789789
790
791
792
793
790
791
792
793
794
794795
795
796
796797
797798
798799
strSize = strlen(string);
/* Bungo: What was this for?
// remove any spaces found at the end
while ((strSize != 0) && (string[strSize - 1] == ' ')) {
strSize--;
// remove any spaces found at the end but only in MemoryDevice
if (structHeader->type == kSMBTypeMemoryDevice) {
while ((strSize != 0) && (string[strSize - 1] == ' ')) {
strSize--;
}
}
*/
if (strSize == 0) {
*field = 0;
return;

Archive Download the corresponding diff file

Revision: 2371