forked from Bananymous/banan-os
update main #1
|
@ -45,7 +45,7 @@ int main()
|
||||||
|
|
||||||
while (ssize_t nread = read(fd, path_buffer, sizeof(path_buffer) - 1))
|
while (ssize_t nread = read(fd, path_buffer, sizeof(path_buffer) - 1))
|
||||||
{
|
{
|
||||||
if (nread == -1)
|
if (nread < 0)
|
||||||
{
|
{
|
||||||
perror("read");
|
perror("read");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue