diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-01-21 15:42:36 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-01-21 15:42:36 +0000 |
| commit | ac2fffa4b74cd83963f0d462c379c7f50eeabf20 (patch) | |
| tree | 1f8fc635121499d467998c99ece5983a2d563840 /sys/dev/syscons/fire | |
| parent | e09304d8f33887be9cc37817885061ccbb770d50 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/fire')
| -rw-r--r-- | sys/dev/syscons/fire/fire_saver.c | 2 |
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 e874bf0b84c5d..636f6006a4218 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 { |
