STMems_Standard_C_drivers icon indicating copy to clipboard operation
STMems_Standard_C_drivers copied to clipboard

Replace sprintf with snprintf

Open Hadatko opened this issue 3 years ago • 0 comments

Device part numbers

Summary

Brief explanation of the feature.

Hello, newer compilers are starting to complain related to usage of sprintf function (clang returning warning about deprecation). Their are suggesting to replace that call with snprintf. May you consider align your code?

Basic example

Motivation

'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.

Hadatko avatar Jan 26 '23 14:01 Hadatko