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:
parent
57e6a9b5bb
commit
f817b5727f
|
@ -205,7 +205,7 @@ hlBool CVPKFile::MapDataStructures()
|
||||||
memset(this->lpArchives, 0, this->uiArchiveCount * sizeof(VPKArchive));
|
memset(this->lpArchives, 0, this->uiArchiveCount * sizeof(VPKArchive));
|
||||||
for(hlUInt i = 0; i < this->uiArchiveCount; i++)
|
for(hlUInt i = 0; i < this->uiArchiveCount; i++)
|
||||||
{
|
{
|
||||||
hlInt iPrinted = sprintf(lpArchiveNumber, "%0.3u", i);
|
hlInt iPrinted = sprintf(lpArchiveNumber, "%.3u", i);
|
||||||
if(iPrinted > 0)
|
if(iPrinted > 0)
|
||||||
{
|
{
|
||||||
strcat(lpArchiveNumber + iPrinted, lpExtension);
|
strcat(lpArchiveNumber + iPrinted, lpExtension);
|
||||||
|
|
Loading…
Reference in New Issue