Use snprintf instead of sprintf if possible.
Merge pull request #181 from TsudaKageyu/snprintf

Use snprintf instead of sprintf if possible.