paleofetch

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a0974662a9fd464242f70ae47f1e8353eb5d4b55
parent 7094f99aca68cdc7f02c0378e231932ec7e13e37
Author: dwzg <dennis@wtzg.de>
Date:   Fri, 24 Apr 2020 21:07:02 +0200

Fix wrong string length in REMOVE macro

The sizeof operator return number of chars + \0, but remove_string() expects only number of characters

Diffstat:
Mpaleofetch.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paleofetch.h b/paleofetch.h @@ -20,4 +20,4 @@ char *get_title(), *spacer(); #define SPACER {"", spacer, false}, -#define REMOVE(A) { (A), sizeof(A) } +#define REMOVE(A) { (A), sizeof(A) - 1}