OSSP CVS Repository |
![]() |
|
2005-May-31 15:08:15 by anonymous:by anonymous on 2005-May-31 15:08
I didn't find any "attach" function so I provide the patch here:--- xds-0.9.1/xds_engine_xdr.c 2004-09-12 19:24:34.000000000 +0200 +++ xds-0.9.1-patched/xds_engine_xdr.c 2005-05-31 14:30:06.388110990 +0200 @@ -696,7 +696,7 @@ /* Copy data into the buffer. */ memmove(*p, (xds_uint8_t *)buffer + 4, p_len); - ((xds_uint8_t *)buffer)[4 + p_len] = '\0'; + ((xds_uint8_t *)*p)[p_len] = '\0'; return XDS_OK; }
by anonymous on 2005-May-31 15:17
2005-May-31 15:17:47 by anonymous:
Simpler patch:--- xds-0.9.1/xds_engine_xdr.c 2004-09-12 19:24:34.000000000 +0200 +++ xds-0.9.1-patched/xds_engine_xdr.c 2005-05-31 15:15:07.550781769 +0200 @@ -696,7 +696,7 @@ /* Copy data into the buffer. */ memmove(*p, (xds_uint8_t *)buffer + 4, p_len); - ((xds_uint8_t *)buffer)[4 + p_len] = '\0'; + (*p)[p_len] = '\0'; return XDS_OK; }