chiark
/
gitweb
/
~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix assertion to have correct test
[userv-utils]
/
ipif
/
service.c
diff --git
a/ipif/service.c
b/ipif/service.c
index b9d8b44cbd56ceb1188a9a79b48459538b4dddd1..39994169ea567ea8cb53aff07d29c9741de92fed 100644
(file)
--- a/
ipif/service.c
+++ b/
ipif/service.c
@@
-863,7
+863,7
@@
static void copydata(void) {
r= read(0, input_buf + input_waiting, want);
if (r>0) {
input_waiting += r;
- assert(
r
< sizeof(input_buf));
+ assert(
input_waiting
< sizeof(input_buf));
more_rx_data(input_buf, rx_packet_buf);
} else if (r==0) {
terminate(0);