From 9d4d541b01d715fc2b28d2c38cba2f6a4bb67b2a Mon Sep 17 00:00:00 2001 From: 8nl <8nlight@disroot.org> Date: Sat, 13 Jan 2024 15:35:40 +0000 Subject: [PATCH] Upload files to "/" --- cutecat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cutecat.c b/cutecat.c index 71bd815..a0fd98f 100644 --- a/cutecat.c +++ b/cutecat.c @@ -50,7 +50,7 @@ int cat(const char *path) { char buf[1025]; off_t len = 0; - off_t n_line = 0; + off_t n_line = 10; while ((len = read(fd, buf, sizeof(buf))) > 0) { OwO(buf, len); @@ -60,7 +60,7 @@ int cat(const char *path) { n_line++; if (!isspace(buf[i]) && !r_flag) - PrintRainbow(buf[i], len + n_line); + PrintRainbow(buf[i], n_line + i / 10); else putchar(buf[i]);