Changes in uspace/app/bdsh/cmds/modules/cp/cp.c [2815505:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
r2815505 r7e752b2 108 108 for (;;) { 109 109 ssize_t res; 110 size_t written = 0;111 110 112 111 bytes = read(fd1, buff, blen); … … 121 120 * returned less data than requested. 122 121 */ 123 bytes = write(fd2, buff + written, res);122 bytes = write(fd2, buff, res); 124 123 if (bytes < 0) 125 124 goto err; 126 written += bytes;127 125 res -= bytes; 128 126 } while (res > 0);
Note:
See TracChangeset
for help on using the changeset viewer.