Bug 86842 - 【data】新增apn时apn_name、username、password、apn_type设置为最大长度会导致程序卡死,data无法再初始化
Change-Id: I4585073f90d582f675ace01255a587e30f5052b9
diff --git a/mbtk/include/lynq/lynq-qser-data.h b/mbtk/include/lynq/lynq-qser-data.h
old mode 100755
new mode 100644
index 35c4cd9..a480312
--- a/mbtk/include/lynq/lynq-qser-data.h
+++ b/mbtk/include/lynq/lynq-qser-data.h
@@ -43,9 +43,9 @@
} qser_apn_auth_proto_e;
#define QSER_APN_MAX_LIST 8
-#define QSER_APN_NAME_SIZE 150
-#define QSER_APN_USERNAME_SIZE 127
-#define QSER_APN_PASSWORD_SIZE 127
+#define QSER_APN_NAME_SIZE 150+1
+#define QSER_APN_USERNAME_SIZE 127+1
+#define QSER_APN_PASSWORD_SIZE 127+1
struct v4_address_status {
struct in_addr ip; /*!< Public IPv4 address. */