paleofetch

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

commit 0f41177e4a01dd4792e3340fe91f219ec366bfcb
parent a178b7952303a2bd8b4b89c6ceb1862fb829513d
Author: sam-barr <samfbarr@outlook.com>
Date:   Wed, 22 Apr 2020 15:35:39 -0500

Fixed bug in removew_newline

Diffstat:
Mpaleofetch.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/paleofetch.c b/paleofetch.c @@ -43,7 +43,8 @@ int title_length; int status; void remove_newline(char *s) { - while (*(++s) != '\n'); + while (*s != '\0' && *s != '\n') + s++; *s = '\0'; }