Description:
In mtce/src/hwmon/hwmonThreads.cpp, line 266:
++dst_ptr = '\0' ;
should be modified as
*(++dst_ptr) = '\0' ;
Otherwise the code is useless and will generate a compile error in
higher version gcc.
Reproduce:
Compile the mcte code with gcc 8.2.1 will cause a compile error.
And after the fix, the error is gone.
Closes-Bug: 1804599
Change-Id: I25df255fb14aa3d96c62927eeb7d3e23ae29af2b
Signed-off-by: Yan Chen <yan.chen@intel.com>