VirtualBox

Changeset 49039 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Oct 10, 2013 6:27:32 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89816
Message:

IPRT: Filename extension versus suffix cleanup, long overdue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/install_service/generate_service_file.cpp

    r44529 r49039  
    585585            else
    586586            {
    587                 const char *pcszFileName =
    588                     RTPathFilename(pParameters->pcszCommand);
    589                 const char *pcszExtension =
    590                     RTPathExt(pParameters->pcszCommand);
     587                const char *pcszFileName = RTPathFilename(pParameters->pcszCommand);
     588                const char *pcszSuffix   = RTPathSuffix(pParameters->pcszCommand);
    591589                char *pszName = RTStrDupN(pcszFileName,
    592                                             pcszExtension
    593                                           ? pcszExtension - pcszFileName
     590                                            pcszSuffix
     591                                          ? pcszSuffix - pcszFileName
    594592                                          : RTPATH_MAX);
    595593                bool fRc;
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