while (token->ops->complete_iterate(token,
&preparse.opaque,
tmpbuf,
- sizeof(tmpbuf)) == 0) {
+ sizeof(tmpbuf)) >= 0) {
debug_printf(" choice <%s>\n", tmpbuf);
debug_printf("Completion %s\n", tmpbuf);
/* we kept at least the room for one char */
- /* XXX to be updated for non-final completion */
if (ret == 0)
strcat(tmpbuf, " ");