From afa00abb2b68205bee539d7947130d6b1b1ec6e9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 1 Apr 2021 19:39:14 +0200 Subject: Hardened entire system By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf. --- libs/libgui/psf.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libs/libgui/psf.c') diff --git a/libs/libgui/psf.c b/libs/libgui/psf.c index e28c2d7..751421a 100644 --- a/libs/libgui/psf.c +++ b/libs/libgui/psf.c @@ -25,9 +25,6 @@ static int psf_verify(char *data) struct font *psf_parse(char *data) { - if (!data) - return NULL; - int version = psf_verify(data); char *chars; -- cgit v1.2.3