blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
402 stars 83 forks source link

Fix for compilation error as sprintf is now deprecated. #181

Open bdcbqa314159 opened 1 year ago

bdcbqa314159 commented 1 year ago

There was an error during the compilation. The function sprintf has been replaced by snprintf accordingly.

bdcbqa314159 commented 1 year ago

Please find the code modifications as suggested. Cheers.

slayoo commented 1 year ago

Thanks! Sorry for delayed reply. I've just noticed that BUFFER_SIZE is probably a common macro name, and it would be better to avoid any name cash with other libraries (see https://github.com/search?q=%22%23define+BUFFER_SIZE%22&type=code).

BTW, this PR also made me realize that we have still not recovered our continuous-integration facility for testing Blitz PRs after the shutdown of Travis... - we need to rewrite the .travis.yml file into .github/workflows/tests.yml one!