diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-05-18 16:40:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-05-18 16:40:15 +0000 |
commit | b9c640af8a3c806dde7a13727dab3d1715d35536 (patch) | |
tree | 118c53eb14ae024cb3fe613b435dbad84b78a085 | |
parent | 175f2bb36c5cce9379ac422e788285ae27c036ee (diff) | |
download | mandoc-b9c640af8a3c806dde7a13727dab3d1715d35536.tar.gz |
Even though the size of a pointer should not depend on the type of the
data pointed to, pass the size of the right pointer type to calloc;
cosmetic issue reported by Ulrich Spoerlein <uqs@spoerlein.net>
found in Coverity Scan CID 978734.
No binary change - ok cmp(1).
-rw-r--r-- | chars.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ mchars_alloc(void) */ tab = mandoc_malloc(sizeof(struct mchars)); - htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); + htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln *)); for (i = 0; i < LINES_MAX; i++) { hash = (int)lines[i].code[0] - PRINT_LO; |