ossp-pkg/xds/xdr-encode-octetstream.c 1.1 -> 1.2
--- xdr-encode-octetstream.c 2001/07/20 09:22:25 1.1
+++ xdr-encode-octetstream.c 2001/07/20 10:07:11 1.2
@@ -63,7 +63,7 @@
((u_int8_t*)buffer)[2] = (p_len >> 8) & 0x000000ff;
((u_int8_t*)buffer)[3] = (p_len >> 0) & 0x000000ff;
memmove((u_int8_t*)buffer+4, p, p_len);
- memset(buffer+4+p_len, 0, padding);
+ memset((u_int8_t*)buffer+4+p_len, 0, padding);
}
/* Done. */
|
|