From 83980fe5cef8d75f479c963fa4701d6aedbdfd88 Mon Sep 17 00:00:00 2001 From: Van Lee Date: Thu, 4 Oct 2012 00:48:23 -0500 Subject: HWP: integrate mss_eff_grouping - dynamically allocate temp space to 1024 bytes space for retrieving attribute - mss_eff_grouping.C v1.10 - mss_eff_grouping.H v1.5 Change-Id: I7becf983aa9722f97b4fd8babc7c65fcd0175ac6 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1730 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton Reviewed-by: A. Patrick Williams III --- src/usr/targeting/common/xmltohb/xmltohb.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/usr/targeting/common/xmltohb/xmltohb.pl') diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl index e286eb60a..5afbfe40d 100755 --- a/src/usr/targeting/common/xmltohb/xmltohb.pl +++ b/src/usr/targeting/common/xmltohb/xmltohb.pl @@ -1609,7 +1609,7 @@ sub writeAttrErrlCFile { print $outFile "void ErrlUserDetailsAttribute::addData(\n"; print $outFile " uint32_t i_attr)\n"; print $outFile "{\n"; - print $outFile " char tmpBuffer[128];\n"; + print $outFile " char *tmpBuffer = new char[1024];\n"; print $outFile " uint32_t attrSize = 0;\n"; print $outFile "\n"; print $outFile " switch (i_attr) {\n"; @@ -1646,6 +1646,7 @@ sub writeAttrErrlCFile { print $outFile " memcpy(pBuf + iv_dataSize, tmpBuffer, attrSize); // copy into iv_pBuffer\n"; print $outFile " iv_dataSize += attrSize;\n"; print $outFile " }\n"; + print $outFile " delete [] tmpBuffer;\n"; print $outFile "}\n"; print $outFile "\n"; -- cgit v1.2.1