VirtualBox

Changeset 55579 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 1, 2015 10:02:24 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99952
Message:

RTStrCopy is a better choice here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r55578 r55579  
    23502350        {
    23512351            case VBOXSERVICESESSIONOPT_LOG_FILE:
    2352                 if (!RTStrPrintf(g_szLogFile, sizeof(g_szLogFile), "%s", ValueUnion.psz))
    2353                     return RTMsgErrorExit(RTEXITCODE_FAILURE, "Unable to set logfile name to '%s'",
    2354                                           ValueUnion.psz);
     2352                rc = RTStrCopy(g_szLogFile, sizeof(g_szLogFile), ValueUnion.psz);
     2353                if (RT_FAILURE(rc))
     2354                    return RTMsgErrorExit(RTEXITCODE_FAILURE, "Error copying log file name: %Rrc", rc);
    23552355                break;
    23562356#ifdef DEBUG
Note: See TracChangeset for help on using the changeset viewer.

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