From 7aa65c705d90b2ad18f79265fd8e6106c4e19bbb Mon Sep 17 00:00:00 2001 From: HumanDynamo Date: Sat, 4 Oct 2014 13:05:25 +0000 Subject: [PATCH] fix error reported by cppcheck --- xmpsdk/src/XMPMeta-Serialize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpsdk/src/XMPMeta-Serialize.cpp b/xmpsdk/src/XMPMeta-Serialize.cpp index 56dfc297..8cc96aec 100644 --- a/xmpsdk/src/XMPMeta-Serialize.cpp +++ b/xmpsdk/src/XMPMeta-Serialize.cpp @@ -303,7 +303,7 @@ AppendNodeValue ( XMP_VarString & outputStr, const XMP_VarString & value, bool f XMP_Assert ( (ch == kTab) || (ch == kLF) || (ch == kCR) ); char hexBuf[16]; - memcpy ( hexBuf, "&#xn;", 10 ); // AUDIT: Length of "&#xn;" is 5, hexBuf size is 16. + memcpy ( hexBuf, "&#xn;", 5 ); hexBuf[3] = kHexDigits[ch&0xF]; outputStr.append ( hexBuf, 5 );