Skip to content

Commit

Permalink
Merge pull request appneta#378 from appneta/Bug_#374_coverity_bugs
Browse files Browse the repository at this point in the history
Bug appneta#374 more coverity detected issues
  • Loading branch information
fklassen authored May 2, 2017
2 parents 10aeed5 + 28f3198 commit bc46734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ read_cache(char **cachedata, const char *cachefile, char **comment)
header.comment_len = ntohs(header.comment_len);
if (header.comment_len > 65534)
errx(-1, "Unable to process %s: invalid comment length %u",
header.comment_len);
cachefile, header.comment_len);

*comment = (char *)safe_malloc(header.comment_len + 1);

Expand Down

0 comments on commit bc46734

Please sign in to comment.