Usermode - Switched to the POSIX read()/write() argument order
[tpg/acess2.git] / Usermode / Applications / cat_src / main.c
index 8fc8463..e63a97c 100644 (file)
@@ -29,7 +29,7 @@ int main(int argc, char *argv[])
        }
 
        do {
-               num = read(fd, BUF_SIZE, buf);
+               num = read(fd, buf, BUF_SIZE);
                buf[num] = '\0';
                printf("%s", buf);
        } while(num == BUF_SIZE);

UCC git Repository :: git.ucc.asn.au