From 596b2ce458e7097573687b042e162ee484db4cbb Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Wed, 17 Mar 2021 10:38:48 +0100 Subject: [PATCH] Replaced with (line 180), trying to fix #43 --- Makefile | 2 +- uwufetch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d146bef..a98c909 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ build: uwufetch.c gcc $(FLAGS) -o $(NAME) $(FILES) debug: - clear + @clear gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES) ./uwufetch diff --git a/uwufetch.c b/uwufetch.c index 4823289..3d165f6 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -177,7 +177,7 @@ void get_info() { // get all necessary info fclose(cpuinfo); gethostname(host, 256); sscanf(getenv("SHELL"), "%s", shell); - if (strlen(shell) > 16) memmove(&shell, &shell[27], sizeof(shell)); // android shell was too long, this works only for termux + if (strlen(shell) > 16) memmove(&shell, &shell[27], strlen(shell)); // android shell was too long, this works only for termux // system resources uname(&sys_var);