OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xdr-decode-string.c versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/xdr-decode-string.c 1.2 -> 1.3

--- xdr-decode-string.c  2001/07/20 10:56:01     1.2
+++ xdr-decode-string.c  2001/07/20 11:15:39     1.3
@@ -32,7 +32,7 @@
 
 int xdr_decode_string(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
     {
-    void**  p;
+    char**  p;
     size_t* p_len;
     size_t  padding;
 
@@ -47,7 +47,7 @@
 
     /* Get pointers from the stack. */
 
-    p     = va_arg(*args, void**);
+    p     = va_arg(*args, char**);
     p_len = va_arg(*args, size_t*);
     assert(p != NULL);
     assert(p_len != NULL);
@@ -75,7 +75,7 @@
 
     /* Allocate buffer for the data. */
 
-    *p = malloc(*p_len + 1);
+    *p = (char*)malloc(*p_len + 1);
     if (*p == NULL)
         return XDS_ERR_NO_MEM;
 

CVSTrac 2.0.1