PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Fixes format-truncation warnings #286

Closed peteschultz closed 5 years ago

peteschultz commented 5 years ago

This pull request improves the way that snprintf is used to determine the length a formatted string will be before allocating space for the string. The older method generated format-truncation warnings on some compilers.