projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to make the test suite work with Windows executables.
[tinc]
/
src
/
sptps_test.c
diff --git
a/src/sptps_test.c
b/src/sptps_test.c
index
0452b25
..
ea81a28
100644
(file)
--- a/
src/sptps_test.c
+++ b/
src/sptps_test.c
@@
-370,6
+370,7
@@
int main(int argc, char *argv[]) {
}
char buf[65535] = "";
}
char buf[65535] = "";
+ size_t readsize = datagram ? 1460u : sizeof(buf);
fd_set fds;
FD_ZERO(&fds);
fd_set fds;
FD_ZERO(&fds);
@@
-387,7
+388,7
@@
int main(int argc, char *argv[]) {
}
if(FD_ISSET(in, &fds)) {
}
if(FD_ISSET(in, &fds)) {
- ssize_t len = read(in, buf,
sizeof(buf)
);
+ ssize_t len = read(in, buf,
readsize
);
if(len < 0) {
fprintf(stderr, "Could not read from stdin: %s\n", strerror(errno));
if(len < 0) {
fprintf(stderr, "Could not read from stdin: %s\n", strerror(errno));