aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/fire/fire_saver.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/syscons/fire/fire_saver.c')
-rw-r--r--sys/dev/syscons/fire/fire_saver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/syscons/fire/fire_saver.c b/sys/dev/syscons/fire/fire_saver.c
index e874bf0b84c5..636f6006a421 100644
--- a/sys/dev/syscons/fire/fire_saver.c
+++ b/sys/dev/syscons/fire/fire_saver.c
@@ -155,7 +155,7 @@ fire_init(video_adapter_t *adp)
scrw = info.vi_width;
scrh = info.vi_height;
- buf = (u_char *)mallocarray(scrw, scrh + 1, M_DEVBUF, M_NOWAIT);
+ buf = (u_char *)malloc(scrw * (scrh + 1), M_DEVBUF, M_NOWAIT);
if (buf) {
bzero(buf, scrw * (scrh + 1));
} else {