VirtualBox

Changeset 34919 in vbox


Ignore:
Timestamp:
Dec 9, 2010 6:14:41 PM (14 years ago)
Author:
vboxsync
Message:

Runtime: fix wrong writing of big file sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/tar.cpp

    r34002 r34919  
    260260    /* Fill the header record */
    261261//    RT_ZERO(pRecord);
    262     RTStrPrintf(pRecord->h.name,  sizeof(pRecord->h.name),  "%s",     pszSrcName);
    263     RTStrPrintf(pRecord->h.mode,  sizeof(pRecord->h.mode),  "%0.7o",  fmode);
    264     RTStrPrintf(pRecord->h.uid,   sizeof(pRecord->h.uid),   "%0.7o",  uid);
    265     RTStrPrintf(pRecord->h.gid,   sizeof(pRecord->h.gid),   "%0.7o",  gid);
    266     RTStrPrintf(pRecord->h.size,  sizeof(pRecord->h.size),  "%0.11o", cbSize);
    267     RTStrPrintf(pRecord->h.mtime, sizeof(pRecord->h.mtime), "%0.11o", mtime);
     262    RTStrPrintf(pRecord->h.name,  sizeof(pRecord->h.name),  "%s",       pszSrcName);
     263    RTStrPrintf(pRecord->h.mode,  sizeof(pRecord->h.mode),  "%0.7o",    fmode);
     264    RTStrPrintf(pRecord->h.uid,   sizeof(pRecord->h.uid),   "%0.7o",    uid);
     265    RTStrPrintf(pRecord->h.gid,   sizeof(pRecord->h.gid),   "%0.7o",    gid);
     266    RTStrPrintf(pRecord->h.size,  sizeof(pRecord->h.size),  "%0.11llo", cbSize);
     267    RTStrPrintf(pRecord->h.mtime, sizeof(pRecord->h.mtime), "%0.11o",   mtime);
    268268    RTStrPrintf(pRecord->h.magic, sizeof(pRecord->h.magic), "ustar  ");
    269269    RTStrPrintf(pRecord->h.uname, sizeof(pRecord->h.uname), "someone");
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette