diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-02-27 19:16:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-03-02 12:39:07 +0100 |
commit | 8419d4577641e519a49883cc80360bc348db2825 (patch) | |
tree | 94dec604fb1efdcf81acd561ff32216b7e6fb544 /src/vconsole | |
parent | 62d74c78b59f95a76778d9fa8dbe3b098afa2aad (diff) | |
download | systemd-8419d4577641e519a49883cc80360bc348db2825.tar.gz |
coccinelle: similar to reallocarray() let's also systematically use malloc_multiply()
Diffstat (limited to 'src/vconsole')
-rw-r--r-- | src/vconsole/vconsole-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c index 2e0e09d843..a9cc2bf63c 100644 --- a/src/vconsole/vconsole-setup.c +++ b/src/vconsole/vconsole-setup.c @@ -248,7 +248,7 @@ static void setup_remaining_vcs(int src_fd, unsigned src_idx, bool utf8) { * requries 32 per glyph, regardless of the actual height - see the comment above #define * max_font_size 65536 in drivers/tty/vt/vt.c for more details. */ - fontbuf = malloc((cfo.width + 7) / 8 * 32 * cfo.charcount); + fontbuf = malloc_multiply((cfo.width + 7) / 8 * 32, cfo.charcount); if (!fontbuf) { log_oom(); return; |