snmpapi: Add a missing memcpy.
This commit is contained in:
parent
df2c8a2551
commit
4270d13b18
|
@ -54,6 +54,7 @@ static INT asn_any_copy(AsnAny *dst, AsnAny *src)
|
||||||
UINT length = src->asnValue.string.length;
|
UINT length = src->asnValue.string.length;
|
||||||
|
|
||||||
if (!(stream = HeapAlloc(GetProcessHeap(), 0, length))) return SNMPAPI_ERROR;
|
if (!(stream = HeapAlloc(GetProcessHeap(), 0, length))) return SNMPAPI_ERROR;
|
||||||
|
memcpy(stream, src->asnValue.string.stream, length);
|
||||||
|
|
||||||
dst->asnValue.string.stream = stream;
|
dst->asnValue.string.stream = stream;
|
||||||
dst->asnValue.string.length = length;
|
dst->asnValue.string.length = length;
|
||||||
|
|
Loading…
Reference in New Issue