Skip to content

Commit e183923

Browse files
author
Ari Parkkila
committed
Changed std::snprintf to sprintf in cellular ATHandler.cpp
1 parent b811f7e commit e183923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void ATHandler::write_int(int32_t param)
964964
// write the integer subparameter
965965
const int32_t str_len = 12;
966966
char number_string[str_len];
967-
int32_t result = std::snprintf(number_string, str_len, "%ld", param);
967+
int32_t result = sprintf(number_string, "%ld", param);
968968
if (result > 0 && result < str_len) {
969969
for (size_t i = 0; number_string[i]; i++) {
970970
if (write_char(number_string[i]) == false) {

0 commit comments

Comments
 (0)