address of junk

pull/12/head
Tom Early 7 years ago
parent 1fb7271f11
commit c4d04c6cc0

@ -406,7 +406,7 @@ MODEM_RESPONSE CQnetModem::GetModemData(unsigned char *buf, unsigned int size)
while (junk_count) {
unsigned char junk[8];
ret = read(serfd, junk, (junk_count < 8U) ? 8U : junk_count);
ret = read(serfd, &junk, (junk_count < 8U) ? 8U : junk_count);
if (ret < 0) {
printf("Error when reading junk: %s\n", strerror(errno));
return ERROR_RESPONSE;

Loading…
Cancel
Save

Powered by TurnKey Linux.