@ -1620,9 +1620,11 @@ static int maxlinelen(const char *file)
if(bytes == -1) {
mprintf("!maxlinelen: Can't read file %s\n", file);
close(fd);
return -1;
}
return nmax + 1;
@ -68,7 +68,7 @@ cli_ctx *convenience_ctx(int fd) {
return NULL;
ctx->fmap = cli_malloc(sizeof(struct F_MAP *)){
ctx->fmap = cli_malloc(sizeof(struct F_MAP *));
if(!(ctx->fmap)){
printf("fmap malloc failed\n");
free(ctx->engine);