]> granicus.if.org Git - esp-idf/commitdiff
updated buffer size too small for popular carrier in India Airtel -> airtelgprs.com
authorAkbar Hashim <akbarhash@hotmail.com>
Wed, 30 Jan 2019 04:25:51 +0000 (09:55 +0530)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 21 Mar 2019 07:06:24 +0000 (15:06 +0800)
Merges https://github.com/espressif/esp-idf/pull/3010

examples/protocols/pppos_client/components/modem/src/esp_modem_dce_service.c

index ad59a8b3e8fd4277db80f376e3c61d1fa836a05e..4b73534cf3ee27e7ee9c7d1bed5c2ce46f6f0a91 100644 (file)
@@ -101,7 +101,7 @@ err:
 esp_err_t esp_modem_dce_define_pdp_context(modem_dce_t *dce, uint32_t cid, const char *type, const char *apn)
 {
     modem_dte_t *dte = dce->dte;
-    char command[32];
+    char command[64];
     int len = snprintf(command, sizeof(command), "AT+CGDCONT=%d,\"%s\",\"%s\"\r", cid, type, apn);
     DCE_CHECK(len < sizeof(command), "command too long: %s", err, command);
     dce->handle_line = esp_modem_dce_handle_response_default;