git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usermode - Switched to the POSIX read()/write() argument order
[tpg/acess2.git]
/
Usermode
/
Applications
/
cat_src
/
main.c
diff --git
a/Usermode/Applications/cat_src/main.c
b/Usermode/Applications/cat_src/main.c
index
8fc8463
..
e63a97c
100644
(file)
--- a/
Usermode/Applications/cat_src/main.c
+++ b/
Usermode/Applications/cat_src/main.c
@@
-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