From e183923c0d9f299f0979f21ad1b7e0dfbac6f80c Mon Sep 17 00:00:00 2001 From: Ari Parkkila Date: Thu, 1 Mar 2018 12:05:49 +0200 Subject: [PATCH] Changed std::snprintf to sprintf in cellular ATHandler.cpp --- features/cellular/framework/AT/ATHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/cellular/framework/AT/ATHandler.cpp b/features/cellular/framework/AT/ATHandler.cpp index 13b5f4e2d6..2c3d6006c5 100644 --- a/features/cellular/framework/AT/ATHandler.cpp +++ b/features/cellular/framework/AT/ATHandler.cpp @@ -964,7 +964,7 @@ void ATHandler::write_int(int32_t param) // write the integer subparameter const int32_t str_len = 12; char number_string[str_len]; - int32_t result = std::snprintf(number_string, str_len, "%ld", param); + int32_t result = sprintf(number_string, "%ld", param); if (result > 0 && result < str_len) { for (size_t i = 0; number_string[i]; i++) { if (write_char(number_string[i]) == false) {