OSSP CVS Repository

ossp - Check-in [4266]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4266
Date: 2001-Aug-01 16:35:43 (local)
2001-Aug-01 14:35:43 (UTC)
User:simons
Branch:callback-semantic-rewrite
Comment: Have the callback set used_buffer_size in any case so that we can use a qualified guess at the new buffer size in case of reallocation.
Tickets:
Inspections:
Files:
ossp-pkg/xds/regression-tests/xds-encode.c      1.5.2.2->removed

ossp-pkg/xds/regression-tests/xds-encode.c 1.5.2.2 -> 1.5.2.3

--- xds-encode.c 2001/08/01 12:03:12     1.5.2.2
+++ xds-encode.c 2001/08/01 14:35:43     1.5.2.3
@@ -63,11 +63,9 @@
         printf("args pointer passed to engine is NULL!\n");
         exit(1);
         }
+    *used_buffer_size = 6;
     if (buffer_size < 6)
         return XDS_ERR_OVERFLOW;
-    else
-        *used_buffer_size = 6;
-
     memmove(buffer, "Hallo ", 6);
     return XDS_OK;
     }

CVSTrac 2.0.1