OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/regression-tests/xds-setbuffer.c versions 1.3.2.1 and 1.3.2.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/regression-tests/xds-setbuffer.c 1.3.2.1 -> 1.3.2.2

--- xds-setbuffer.c      2001/08/01 11:27:20     1.3.2.1
+++ xds-setbuffer.c      2001/08/01 12:05:30     1.3.2.2
@@ -39,9 +39,12 @@
     assert(buffer_size != 0);
     assert(used_buffer_size != NULL);
     assert(args != NULL);
-    if (buffer_size >= 64)
-        memset(buffer, 'a', 64);
-    return 64;
+    if (buffer_size < 64)
+        return XDS_ERR_OVERFLOW;
+    else
+        *used_buffer_size = 64;
+    memset(buffer, 'a', 64);
+    return XDS_OK;
     }
 
 int main()

CVSTrac 2.0.1