summaryrefslogtreecommitdiff
path: root/usr.bin/vtfontcvt
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-06-04 19:39:06 +0000
committerEd Maste <emaste@FreeBSD.org>2019-06-04 19:39:06 +0000
commit7e65018aa6d3fb38744b93a4f6e2bf0d9a323760 (patch)
tree2b0ca4aa363837f2c940b1ca414c4a2a3970dca6 /usr.bin/vtfontcvt
parent37dbd136c3a4c51d15507696da0baa0478c289fb (diff)
downloadsrc-test2-7e65018aa6d3fb38744b93a4f6e2bf0d9a323760.tar.gz
src-test2-7e65018aa6d3fb38744b93a4f6e2bf0d9a323760.zip
Notes
Diffstat (limited to 'usr.bin/vtfontcvt')
-rw-r--r--usr.bin/vtfontcvt/vtfontcvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vtfontcvt/vtfontcvt.c b/usr.bin/vtfontcvt/vtfontcvt.c
index dc9ed1f50cf9..1e82049872ac 100644
--- a/usr.bin/vtfontcvt/vtfontcvt.c
+++ b/usr.bin/vtfontcvt/vtfontcvt.c
@@ -102,7 +102,7 @@ xmalloc(size_t size)
{
void *m;
- if ((m = malloc(size)) == NULL)
+ if ((m = calloc(1, size)) == NULL)
errx(1, "memory allocation failure");
return (m);
}