[Bugfix][T800][bug-view-218]Fix the issue of incomplete display caused by long data
Only Configure :No
Affected branch: LYNQ_PUBLIC
Affected module: AT
Is it affected on both ZXIC and MTK:only MTK
Self-test: Yes
Doc Update: No
Change-Id: I7338d5b5783853c89c246e7e2a779e29176824f9
diff --git a/common_src/framework/lynq-ril-service/src/atci/ATCI.cpp b/common_src/framework/lynq-ril-service/src/atci/ATCI.cpp
index 236a3d7..cc5b223 100755
--- a/common_src/framework/lynq-ril-service/src/atci/ATCI.cpp
+++ b/common_src/framework/lynq-ril-service/src/atci/ATCI.cpp
@@ -479,7 +479,7 @@
}
int atci_send_data(char *data)
{
- char buf[256];
+ char buf[512];
int data_len = 0;
memset(buf, 0, sizeof(buf));
if(NULL == data)
@@ -490,10 +490,10 @@
else
{
data_len = strlen(data);
- if(data_len > 252)// \r\n + \r\n\0
+ if(data_len > 508)// \r\n + \r\n\0
{
RLOGD("data too long");
- snprintf(buf,252,"\r\n%s\r\n",data);
+ snprintf(buf,508,"\r\n%s\r\n",data);
}
else
{