Upload files to "/"

This commit is contained in:
8nl 2024-01-13 15:35:40 +00:00
parent 89f4c53fba
commit 9d4d541b01
1 changed files with 2 additions and 2 deletions

View File

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