diff options
author | Alexey Gladkov <gladkov.alexey@gmail.com> | 2023-04-24 14:58:48 +0200 |
---|---|---|
committer | Alexey Gladkov <gladkov.alexey@gmail.com> | 2023-04-24 15:05:52 +0200 |
commit | 179c45f191b2d1db934ff7f9ea0df202411a78c1 (patch) | |
tree | d7fa90c61900f6dfcff3bd58b17b5a3cd11c1b5d | |
parent | 287a3baeb8fc2fc6fd68b3accff8f9651d725d16 (diff) | |
download | kbd-179c45f191b2d1db934ff7f9ea0df202411a78c1.tar.gz |
Don't treat successful function completion as an error
In a previous change, the return code check of the kfont_put_font
function was accidentally changed. This change completely broke font
loading.
Fixes: 287a3bae ("font: Leverage KD_FONT_OP_GET/SET_TALL font operations")
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
-rw-r--r-- | src/libkfont/setfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libkfont/setfont.c b/src/libkfont/setfont.c index ec7ede17..c88f9b12 100644 --- a/src/libkfont/setfont.c +++ b/src/libkfont/setfont.c @@ -170,7 +170,7 @@ try_loadfont(struct kfont_context *ctx, int fd, const unsigned char *inbuf, KFONT_INFO(ctx, _("Loading %d-char %dx%d (%d) font"), fontsize, width, height, hwunit); - if (kfont_put_font(ctx, fd, buf, fontsize, width, hwunit, vpitch) < 1) { + if (kfont_put_font(ctx, fd, buf, fontsize, width, hwunit, vpitch) < 0) { ret = -EX_OSERR; goto err; } |