Upload files to "/"
This commit is contained in:
parent
89f4c53fba
commit
9d4d541b01
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue