diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-20 05:43:26 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-20 05:43:26 +0900 |
commit | c6fe85d881a68cb000609779b2abdcaa6a4e1ec3 (patch) | |
tree | e165fc03c20d75320f5ebf9ae644f8140cd20cdb /src/logo/openbsd.c | |
parent | 662dff2bfa28f523355c69ae83c3f16032e11c3d (diff) |
.
Diffstat (limited to 'src/logo/openbsd.c')
-rw-r--r-- | src/logo/openbsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/logo/openbsd.c b/src/logo/openbsd.c index c33835f..fa59bba 100644 --- a/src/logo/openbsd.c +++ b/src/logo/openbsd.c @@ -3,6 +3,7 @@ #include "../resolution.h" #include <string.h> +#include <stdlib.h> char *LOGO[23]; char *LOGO_SMALL[23]; @@ -14,7 +15,9 @@ int minsize = MIN_SIZE; void getOS() { color = YELLOW; titlecolor = YELLOW; - if (!display_resolution()) minsize--; + const char *res = display_resolution(); + if (!res) minsize--; + else free((void *)res); for (int i = 0; i < LOGO_SIZE; i++) { LOGO[i] = NULL; |