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