mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-23 07:04:21 +08:00
Joshua Neal's fix for the raw i2c wdata buffer being populated incorrectly
This commit is contained in:
parent
bf815d0093
commit
1e8967b1f9
@ -233,7 +233,7 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
memset(wdata, 0, IPMI_I2C_MASTER_MAX_SIZE);
|
memset(wdata, 0, IPMI_I2C_MASTER_MAX_SIZE);
|
||||||
for (; i < argc; i++) {
|
for (; i < argc; i++) {
|
||||||
uint8_t val = (uint8_t)strtol(argv[i], NULL, 0);
|
uint8_t val = (uint8_t)strtol(argv[i], NULL, 0);
|
||||||
wdata[i-2] = val;
|
wdata[wsize] = val;
|
||||||
wsize++;
|
wsize++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user