diff options
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/wsfont/wsfont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/wsfont/wsfont.c b/sys/dev/wsfont/wsfont.c index 15c1a44da6f..27fabf45920 100644 --- a/sys/dev/wsfont/wsfont.c +++ b/sys/dev/wsfont/wsfont.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsfont.c,v 1.27 2002/03/20 12:18:56 ad Exp $ */ +/* $NetBSD: wsfont.c,v 1.28 2002/03/21 03:26:55 enami Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.27 2002/03/20 12:18:56 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wsfont.c,v 1.28 2002/03/21 03:26:55 enami Exp $"); #include "opt_wsfont.h" @@ -340,7 +340,7 @@ wsfont_add0(struct wsdisplay_font *font, int copy) struct font *ent; size_t size; - ent = malloc(sizeof(struct font *), M_DEVBUF, M_WAITOK | M_ZERO); + ent = malloc(sizeof(struct font), M_DEVBUF, M_WAITOK | M_ZERO); /* Is this font statically allocated? */ if (!copy) { @@ -348,7 +348,7 @@ wsfont_add0(struct wsdisplay_font *font, int copy) ent->flags = WSFONT_STATIC; } else { ent->font = malloc(sizeof(struct wsdisplay_font), M_DEVBUF, - M_WAITOK | M_ZERO); + M_WAITOK); memcpy(ent->font, font, sizeof(*ent->font)); size = font->fontheight * font->numchars * font->stride; |
