Move cast of size in VStringFromFormat

Moved cast of int to size_t from assignment to newBufferSize and changed type of size to be size_t.
Prevents compiler warning causing build error.
Merge pull request #148 from crapula2010/patch-1

Move cast of size in VStringFromFormat