VirtualBox

Changeset 43876 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Nov 15, 2012 1:44:09 PM (12 years ago)
Author:
vboxsync
Message:

fixed a few format specifier bugs

File:
1 edited

Legend:

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

    r39083 r43876  
    338338    RTStrPrintf(pRecord->h.gid,   sizeof(pRecord->h.gid),   "%0.7o",    gid);
    339339    rtTarSizeToRec(pRecord, cbSize);
    340     RTStrPrintf(pRecord->h.mtime, sizeof(pRecord->h.mtime), "%0.11o",   mtime);
     340    RTStrPrintf(pRecord->h.mtime, sizeof(pRecord->h.mtime), "%0.11llo",   mtime);
    341341    RTStrPrintf(pRecord->h.magic, sizeof(pRecord->h.magic), "ustar  ");
    342342    RTStrPrintf(pRecord->h.uname, sizeof(pRecord->h.uname), "someone");
     
    11791179    /* Convert the time to an string. */
    11801180    char szModTime[RT_SIZEOFMEMB(RTTARRECORD, h.mtime)];
    1181     RTStrPrintf(szModTime, sizeof(szModTime), "%0.11o", RTTimeSpecGetSeconds(pTime));
     1181    RTStrPrintf(szModTime, sizeof(szModTime), "%0.11llo", RTTimeSpecGetSeconds(pTime));
    11821182
    11831183    /* Write it directly into the header */
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