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);