Fix for buffer overflow problem with long filenames when setting up the LevelDB

I had filenames that were longer than the 100 character limit, and they caused the buffer overflow checking code in sprintf() to trigger. Switching to snprintf() with an explicit 256 character limit fixed the problem in my case.