Commit 4270d13b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

snmpapi: Add a missing memcpy.

parent df2c8a25
......@@ -54,6 +54,7 @@ static INT asn_any_copy(AsnAny *dst, AsnAny *src)
UINT length = src->asnValue.string.length;
if (!(stream = HeapAlloc(GetProcessHeap(), 0, length))) return SNMPAPI_ERROR;
memcpy(stream, src->asnValue.string.stream, length);
dst->asnValue.string.stream = stream;
dst->asnValue.string.length = length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment