MPS Coverity reports
Fix potential problems discovered by MPS team's Coverity static analyzer.
CID 14304, 10630, 10626, 23660, 23655, 23654.
Change-Id: Iec34fd793b44710fa971175cd058e87ab17c76cc
diff --git a/src/adaptation/NfcAdaptation.cpp b/src/adaptation/NfcAdaptation.cpp
index 145c3de..a9bf190 100755
--- a/src/adaptation/NfcAdaptation.cpp
+++ b/src/adaptation/NfcAdaptation.cpp
@@ -112,7 +112,10 @@
unsigned long num;
if ( !GetStrValue ( NAME_NFA_STORAGE, bcm_nfc_location, sizeof ( bcm_nfc_location ) ) )
- strcpy ( bcm_nfc_location, "/data/nfc" );
+ {
+ memset (bcm_nfc_location, 0, sizeof(bcm_nfc_location));
+ strncpy (bcm_nfc_location, "/data/nfc", 9);
+ }
if ( GetNumValue ( NAME_PROTOCOL_TRACE_LEVEL, &num, sizeof ( num ) ) )
ScrProtocolTraceFlag = num;