diff options
author | uqs <uqs@FreeBSD.org> | 2015-12-29 11:24:41 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2015-12-29 11:24:41 +0000 |
commit | 11e0dd6c90098a31b4ee84a2af39114001952d67 (patch) | |
tree | b886de70650826ff015bc0343d808ffba0f524fd /usr.bin/column/column.c | |
parent | d4f2c120c09150a7012ceea91a74ea068aa5a9c6 (diff) | |
download | FreeBSD-src-11e0dd6c90098a31b4ee84a2af39114001952d67.zip FreeBSD-src-11e0dd6c90098a31b4ee84a2af39114001952d67.tar.gz |
Fix type mismatches for malloc(3) and Co.
This is rather pedantic, as for most architectures it holds that
sizeof(type *) == sizeof(type **)
Found by: clang static analyzer
Reviewed by: ed
Differential Revision: https://reviews.freebsd.org/D4722
Diffstat (limited to 'usr.bin/column/column.c')
-rw-r--r-- | usr.bin/column/column.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index b092deb..eb8ca66 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -244,7 +244,7 @@ maketbl(void) p = NULL) if (++coloff == maxcols) { if (!(cols = realloc(cols, ((u_int)maxcols + - DEFCOLS) * sizeof(char *))) || + DEFCOLS) * sizeof(wchar_t *))) || !(lens = realloc(lens, ((u_int)maxcols + DEFCOLS) * sizeof(int)))) err(1, NULL); |