Joshua Neal's fix for the raw i2c wdata buffer being populated incorrectly

This commit is contained in:
Carol Hebert 2008-07-01 00:11:42 +00:00
parent bf815d0093
commit 1e8967b1f9

View File

@ -233,7 +233,7 @@ ipmi_rawi2c_main(struct ipmi_intf * intf, int argc, char ** argv)
memset(wdata, 0, IPMI_I2C_MASTER_MAX_SIZE);
for (; i < argc; i++) {
uint8_t val = (uint8_t)strtol(argv[i], NULL, 0);
wdata[i-2] = val;
wdata[wsize] = val;
wsize++;
}