OSSP CVS Repository

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

ossp-pkg/xds/regression-tests/xds-decode.c 1.4 -> 1.5

--- xds-decode.c 2001/08/01 15:25:50     1.4
+++ xds-decode.c 2001/08/08 09:19:34     1.5
@@ -102,7 +102,7 @@
     /* Decode the buffer and have the callback report when something
        is wrong. */
 
-    if (xds_setbuffer(xds, XDS_LOAN, buffer, strlen(buffer)) != XDS_OK)
+    if (xds_setbuffer(xds, XDS_LOAN, buffer, sizeof(buffer)-1) != XDS_OK)
         {
         printf("xds_decode() failed!");
         return 1;

CVSTrac 2.0.1