Signed-off-by: Olivier Matz <zer0@droids-corp.org>
linebuf++;
/* end of buf, we match all inst */
- if (isendofline(*linebuf) || iscomment(*linebuf))
+ if (*linebuf == '\0' || isendofline(*linebuf) || iscomment(*linebuf))
return 0;
/* garbage after inst */
/* end of inst */
if (token == NULL) {
- n = snprintf(helpbuf, sizeof(helpbuf), "[RETURN]\n");
+ n = snprintf(helpbuf, sizeof(helpbuf), "[Return]\n");
if (n > 0)
write_buf(opaque, helpbuf, n);
continue;