HLLib: remove spurious 0 from format string

If a precision is given for an unsigned integer, padding always happens
with zeroes.
This commit is contained in:
Ondřej Hošek 2013-11-22 01:56:47 +01:00
parent 57e6a9b5bb
commit f817b5727f
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ hlBool CVPKFile::MapDataStructures()
memset(this->lpArchives, 0, this->uiArchiveCount * sizeof(VPKArchive));
for(hlUInt i = 0; i < this->uiArchiveCount; i++)
{
hlInt iPrinted = sprintf(lpArchiveNumber, "%0.3u", i);
hlInt iPrinted = sprintf(lpArchiveNumber, "%.3u", i);
if(iPrinted > 0)
{
strcat(lpArchiveNumber + iPrinted, lpExtension);