libslc: Fix 2 issues in _vsprintf.