projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include fixes
[unix-history]
/
usr
/
src
/
sys
/
stand.att
/
copy.c
diff --git
a/usr/src/sys/stand.att/copy.c
b/usr/src/sys/stand.att/copy.c
index
ba1af64
..
2a29cca
100644
(file)
--- a/
usr/src/sys/stand.att/copy.c
+++ b/
usr/src/sys/stand.att/copy.c
@@
-1,4
+1,4
@@
-/* copy.c 4.
4 83/02/20
*/
+/* copy.c 4.
5 83/02/24
*/
/*
* Copy from to in 10K units.
/*
* Copy from to in 10K units.
@@
-29,6
+29,11
@@
main()
if (rcc < sizeof (buffer))
printf("Record %d: read short; expected %d, got %d\n",
record, sizeof (buffer), rcc);
if (rcc < sizeof (buffer))
printf("Record %d: read short; expected %d, got %d\n",
record, sizeof (buffer), rcc);
+ /*
+ * For bug in ht driver.
+ */
+ if (rcc > sizeof (buffer))
+ rcc = sizeof (buffer);
wcc = write(to, buffer, rcc);
if (wcc < 0) {
printf("Record %d: write error: errno=%d\n",
wcc = write(to, buffer, rcc);
if (wcc < 0) {
printf("Record %d: write error: errno=%d\n",