[PATCH] fix parsing information in smbios prober

Danny Kukawka danny.kukawka at web.de
Fri May 5 08:41:05 PDT 2006


Hi,

this little patch fix the information parsing in probe-smbios. There are 
currently some problem to parse information where the tag-string is shorter 
than 7 chars. I replaced the usage of 'sizeof(char*) -1' (which return the 
size of the pointer and not the string --> 8-1=7) with 'strlen(char*)'.

Please review.

Cheers,

Danny 

 ChangeLog                          |    8 ++++++++
 hald/linux2/probing/probe-smbios.c |    2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-probe_smbios_parse_short_strings.diff
Type: text/x-diff
Size: 1395 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060505/37a6ac33/hal-fix-probe_smbios_parse_short_strings.bin


More information about the hal mailing list