fix CID# 10539

pull/1/head
cwu 13 years ago
parent 8028d34f59
commit a252900c46
  1. 4
      sigtool/sigtool.c
  2. 2
      sigtool/vba.c

@ -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;
}
close(fd);
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);

Loading…
Cancel
Save