diff options
author | Van Lee <vanlee@us.ibm.com> | 2012-10-04 00:48:23 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-10-04 14:30:41 -0500 |
commit | 83980fe5cef8d75f479c963fa4701d6aedbdfd88 (patch) | |
tree | 9a5e92c2ae4bb001b158253198ff74d24eba23ac /src/usr/targeting/common/xmltohb/xmltohb.pl | |
parent | 60bb82b0bdb0564f677a7765e1860dde19eae5e5 (diff) | |
download | talos-hostboot-83980fe5cef8d75f479c963fa4701d6aedbdfd88.tar.gz talos-hostboot-83980fe5cef8d75f479c963fa4701d6aedbdfd88.zip |
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 <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common/xmltohb/xmltohb.pl')
-rwxr-xr-x | src/usr/targeting/common/xmltohb/xmltohb.pl | 3 |
1 files changed, 2 insertions, 1 deletions
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"; |