Changed sprintf to vsprintf to handle arrays that are passed to it. This is to support the commit from the pull request: https://github.com/KnpLabs/snappy/pull/75 that handles multiple inputs.