diff options
author | Jim Yuan <jim.yuan@supermicro.com> | 2017-10-18 11:38:08 -0700 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-10-19 22:07:44 -0400 |
commit | 281503375a8c02c78b8fa188c58c6207affe3713 (patch) | |
tree | b6368ae7ab614eb57996ae5e09f3455b3e056b84 /src | |
parent | f473840bd9de3c418bda915123794da7b7d7d209 (diff) | |
download | talos-hostboot-281503375a8c02c78b8fa188c58c6207affe3713.tar.gz talos-hostboot-281503375a8c02c78b8fa188c58c6207affe3713.zip |
Fix hdatBmcFamily string is overwritten.
Resolves #119
Change-Id: I5d93ba95bb740628e05c457ef0bdf1eb66ca3695
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48601
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/hdat/hdatspsubsys.C | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/hdat/hdatspsubsys.C b/src/usr/hdat/hdatspsubsys.C index 172bc994e..033dc7e7e 100755 --- a/src/usr/hdat/hdatspsubsys.C +++ b/src/usr/hdat/hdatspsubsys.C @@ -7,6 +7,7 @@ /* */ /* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ +/* [+] Jim Yuan */ /* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ @@ -421,9 +422,9 @@ errlHndl_t HdatSpSubsys::hdatFillDataPtrs() strcpy( iv_impl.hdatBmcFamily , l_bmcManufacturer); strcat( iv_impl.hdatBmcFamily , ","); - strcpy( iv_impl.hdatBmcFamily , l_bmcHwChip); + strcat( iv_impl.hdatBmcFamily , l_bmcHwChip); strcat( iv_impl.hdatBmcFamily , ","); - strcpy( iv_impl.hdatBmcFamily , l_bmcSw); + strcat( iv_impl.hdatBmcFamily , l_bmcSw); } else { |