only search for 7 bits

This commit is contained in:
Duncan Laurie 2004-11-19 19:49:23 +00:00
parent b0ccfba549
commit 2e46c84218

View File

@ -233,7 +233,7 @@ ipmi_event_fromfile(struct ipmi_intf * intf, char * file)
rqdata[j] = (unsigned char)strtol(tok, NULL, 0); rqdata[j] = (unsigned char)strtol(tok, NULL, 0);
tok = strtok(NULL, " "); tok = strtok(NULL, " ");
} }
if (i < sizeof(rqdata)) { if (i < 7) {
printf("Invalid Event: %s\n", printf("Invalid Event: %s\n",
buf2str(rqdata, sizeof(rqdata))); buf2str(rqdata, sizeof(rqdata)));
continue; continue;