OSSP CVS Repository

ossp - Difference in ossp-pkg/sio/sio.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sio/sio.c 1.21 -> 1.22

--- sio.c        2003/01/20 16:16:40     1.21
+++ sio.c        2003/01/20 17:43:21     1.22
@@ -571,6 +571,12 @@
 
     }
 
+    /*
+     * clamp to requested size
+     */
+    if (n > limit)
+        n = limit;
+
     while (n > 0) {
         if (label == NULL) {
             datastart = 0;

CVSTrac 2.0.1