mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3608763 - 'lib/ipmi_sdr.c' - fix 'nosats' -> 'nosat'
I forgot to modify size of compared string passed to strncmp() while changing 'nosats' to 'nosat'.
This commit is contained in:
parent
39408ea589
commit
692861f292
@ -4721,7 +4721,7 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
|
||||
rc = -1;
|
||||
} else if (strncmp(argv[1], "sensors", 7) == 0) {
|
||||
rc = ipmi_sdr_add_from_sensors(intf, 21);
|
||||
} else if (strncmp(argv[1], "nosat", 6) == 0) {
|
||||
} else if (strncmp(argv[1], "nosat", 5) == 0) {
|
||||
rc = ipmi_sdr_add_from_sensors(intf, 0);
|
||||
} else if (strncmp(argv[1], "file", 4) == 0) {
|
||||
if (argc < 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user