dereference pointer

r2421 | dcl | 2008-04-14 09:20:48 +1000 (Mon, 14 Apr 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-04-14 09:20:48 +10:00
parent 99409fa8c3
commit 6e49b1e6c1

View File

@@ -278,7 +278,7 @@ static int MonRead(pBeamMon self, /*@out@*/ char* text, int *pLen) {
status = readRS232TillTerm(self->controller, text, pLen);
switch (status) {
case 1:
if (pLen > 0)
if (*pLen > 0)
flog(self, "<::%s", text);
return SUCCESS;
case TIMEOUT: