VirtualBox

Changeset 16518 in vbox


Ignore:
Timestamp:
Feb 4, 2009 4:29:47 PM (16 years ago)
Author:
vboxsync
Message:

OVF: fix path delimiters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r16517 r16518  
    15341534        RTPathStripExt(tmpFile);
    15351535        const char *tmpExt = RTPathExt(aName.c_str());
    1536         RTStrAPrintf(&tmpName, "%s/%s_%d%s", tmpDir, tmpFile, i, tmpExt);
     1536        RTStrAPrintf(&tmpName, "%s%c%s_%d%s", tmpDir, RTPATH_DELIMITER, tmpFile, i, tmpExt);
    15371537        RTStrFree(tmpFile);
    15381538        RTStrFree(tmpDir);
     
    18521852
    18531853                        /* Construct the source file path */
    1854                         Utf8StrFmt strSrcFilePath("%s/%s", strSrcDir.c_str(), di.strHref.c_str());
     1854                        Utf8StrFmt strSrcFilePath("%s%c%s", strSrcDir.c_str(), RTPATH_DELIMITER, di.strHref.c_str());
    18551855                        /* Check if the source file exists */
    18561856                        if (!RTPathExists(strSrcFilePath.c_str()))
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