[Bugfix][T108][bug-view-1611]Fix the issue of obtaining consistent length of SMS center numbers

Only Configure: No
Affected branch: GSW_V1453
Affected module: sms
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: I92dcb05669232307a51a111f4a25df0abddc94e6
diff --git a/mbtk/libgsw_lib/gsw_sms_interface.c b/mbtk/libgsw_lib/gsw_sms_interface.c
index 3b8ea47..ba26614 100755
--- a/mbtk/libgsw_lib/gsw_sms_interface.c
+++ b/mbtk/libgsw_lib/gsw_sms_interface.c
@@ -720,8 +720,8 @@
             }
             strncpy(substr, p1 + 1, len_t);
             substr[len_t] = '\0';            
-            memcpy(smsc, substr, strlen(substr));
-            memcpy(sms_center_address, substr, strlen(substr));
+            strncpy(smsc, substr, len);
+            strncpy(sms_center_address, substr, len);
 
             LOGE(GSW_SMS,"qser_sms_getsmscenteraddress success, smsc = %s\n", sms_center_address);
             free(substr);