Blob Blame Raw
From: Razvan Crainea <razvan@opensips.org>
Date: Fri, 27 Oct 2017 12:05:58 +0300
Subject: [PATCH] sms: increase pin buffer to avoid warnings


diff --git a/modules/sms/libsms_modem.c b/modules/sms/libsms_modem.c
index 2ed7dd8ee..a69b13625 100644
--- a/modules/sms/libsms_modem.c
+++ b/modules/sms/libsms_modem.c
@@ -212,7 +212,7 @@ int setmodemparams( struct modem *mdm )
 
 int initmodem(struct modem *mdm, cds_report cds_report_f)
 {
-	char command[100];
+	char command[11 /* "AT+CPIN=""\r" */ + MAX_CHAR_BUF /* pin */ + 1 /* '\0' */];
 	char answer[100];
 	int retries=0;
 	int success=0;