Skip to content

Replace sprintf by snprintf.

Samuel Burbulla requested to merge bugfix/sprintf-deprecation-warning into master

Fixes the following warning:

dune-alugrid/dune/alugrid/impl/serial/lock.h:26:5: warning: '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. [-Wdeprecated-declarations]
    sprintf (_fname, "%s.lock", name) ;
    ^

Merge request reports

Loading