chiark / gitweb /
fix assertion to have correct test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Jan 2012 00:42:31 +0000 (00:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 15 Jan 2012 00:42:31 +0000 (00:42 +0000)
debian/changelog
ipif/service.c

index 35d54fc..f5e6d9a 100644 (file)
@@ -1,3 +1,9 @@
+userv-utils (0.4.2) unstable; urgency=low
+
+  * 
+
+ --
+
 userv-utils (0.4.1) unstable; urgency=low
 
   ipif bugfixes:
index b9d8b44..3999416 100644 (file)
@@ -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);