summaryrefslogtreecommitdiff
path: root/sys/dev/wsfont
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 01:33:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 01:33:34 +0000
commita854e6884a9635329a1490f5cf8420c8ab6f8f85 (patch)
tree29bd971e80c3ea6bf34f989e494141dcc2c006cb /sys/dev/wsfont
parent1dd97578d5974d04f8b171b17c36e35635acd61b (diff)
Only the most obvious bzero() -> M_ZERO changes. No cast changes, no
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
Diffstat (limited to 'sys/dev/wsfont')
-rw-r--r--sys/dev/wsfont/wsfont.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/wsfont/wsfont.c b/sys/dev/wsfont/wsfont.c
index 2bd7287a5ad..8b438310961 100644
--- a/sys/dev/wsfont/wsfont.c
+++ b/sys/dev/wsfont/wsfont.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfont.c,v 1.21 2007/09/10 19:49:31 gilles Exp $ */
+/* $OpenBSD: wsfont.c,v 1.22 2007/09/17 01:33:33 krw Exp $ */
/* $NetBSD: wsfont.c,v 1.17 2001/02/07 13:59:24 ad Exp $ */
/*-
@@ -313,14 +313,12 @@ wsfont_rotate_internal(struct wsdisplay_font *font)
/* Allocate a buffer big enough for the rotated font. */
newstride = (font->fontheight + 7) / 8;
newbits = malloc(newstride * font->fontwidth * font->numchars,
- M_DEVBUF, M_WAITOK);
+ M_DEVBUF, M_WAITOK | M_ZERO);
if (newbits == NULL) {
free(newfont, M_DEVBUF);
return (NULL);
}
- bzero(newbits, newstride * font->fontwidth * font->numchars);
-
/* Rotate the font a bit at a time. */
for (n = 0; n < font->numchars; n++) {
char *ch = font->data + (n * font->stride * font->fontheight);