Fix build warnings.

git-svn-id: svn://10.0.0.236/trunk@39760 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
slamm%netscape.com
1999-07-16 21:47:03 +00:00
parent fe089662e4
commit 51b8765ad5

View File

@@ -75,7 +75,7 @@ nsOutputStream& operator << (nsOutputStream& s, const nsPersistentFileDescriptor
nsSimpleCharString data;
d.GetData(data, dataSize);
// First write (in hex) the length of the data to follow. Exactly 8 bytes
sprintf(littleBuf, "%0.8x", dataSize);
sprintf(littleBuf, "%.8x", dataSize);
s << littleBuf;
// Now write the data itself
s << (const char*)data;