VirtualBox

Changeset 14320 in vbox


Ignore:
Timestamp:
Nov 18, 2008 5:07:19 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39516
Message:

Main/xpcom: get rid of the annoying double slash in the VBoxSVC path name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xpcom/server_module.cpp

    r13837 r14320  
    140140                    strcpy (VBoxSVCPath, path.get());
    141141                    RTPathStripFilename (VBoxSVCPath);
     142                    /* Get rid of the trailing slash left by RTPathStripFilename(). */
     143                    size_t cbPath = strlen(VBoxSVCPath);
     144                    if (cbPath)
     145                    {
     146                        Assert(RTPATH_IS_SLASH(VBoxSVCPath[cbPath-1]));
     147                        VBoxSVCPath[cbPath-1] = '\0';
     148                    }
    142149                    strcat (VBoxSVCPath, VBoxSVC_exe);
    143150
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