Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main.cpp: Defeat impact of possible buffer overflow
'valgrind --tool=exp-sgcheck' detected an invalid write at former line 491 (sprintf...). Using snprintf avoids this condition, and allows data loss detection (Q: why not use the safer c++ strings, A:???). This fix has some observable impact on bsmap's output, although I've only seen a change in the amount of whitespace. I also assume that this might be the cause for the crashes at the end of bsmap execution.
- Loading branch information