Change snprintf flag to match input.

This was throwing an error on compile on my system, if std::vector<std::basic_string<char> >::size_type changes depending on the build system, we'll need to cast it to a standard integer instead.