VirtualBox

Changeset 28916 in vbox


Ignore:
Timestamp:
Apr 29, 2010 6:13:54 PM (15 years ago)
Author:
vboxsync
Message:

Don't use RTStrCopyEx with RTSTR_MAX.

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/pathhost-generic.cpp

    r28915 r28916  
    7373    int rc = RTStrValidateEncodingEx(pszNativePath, RTSTR_MAX, 0 /*fFlags*/);
    7474    if (RT_SUCCESS(rc))
    75         rc = RTStrCopyEx(pszPath, cbPath, pszNativePath, RTSTR_MAX);
     75        rc = RTStrCopy(pszPath, cbPath, pszNativePath);
    7676    NOREF(pszBasePath); /* We don't query the FS for codeset preferences. */
    7777    return rc;
  • trunk/src/VBox/Runtime/r3/path.cpp

    r28915 r28916  
    7171{
    7272#if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE)
    73     return RTStrCopyEx(pszPath, cchPath, RTPATH_APP_PRIVATE, RTSTR_MAX);
     73    return RTStrCopy(pszPath, cchPath, RTPATH_APP_PRIVATE);
    7474#else
    7575    return RTPathExecDir(pszPath, cchPath);
     
    9393{
    9494#if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_PRIVATE_ARCH)
    95     return RTStrCopyEx(pszPath, cchPath, RTPATH_APP_PRIVATE_ARCH, RTSTR_MAX);
     95    return RTStrCopy(pszPath, cchPath, RTPATH_APP_PRIVATE_ARCH);
    9696#else
    9797    return RTPathExecDir(pszPath, cchPath);
     
    116116{
    117117#if !defined(RT_OS_WINDOWS) && defined(RTPATH_SHARED_LIBS)
    118     return RTStrCopyEx(pszPath, cchPath, RTPATH_SHARED_LIBS, RTSTR_MAX);
     118    return RTStrCopy(pszPath, cchPath, RTPATH_SHARED_LIBS);
    119119#else
    120120    return RTPathExecDir(pszPath, cchPath);
     
    137137{
    138138#if !defined(RT_OS_WINDOWS) && defined(RTPATH_APP_DOCS)
    139     return RTStrCopyEx(pszPath, cchPath, RTPATH_APP_DOCS, RTSTR_MAX);
     139    return RTStrCopy(pszPath, cchPath, RTPATH_APP_DOCS);
    140140#else
    141141    return RTPathExecDir(pszPath, cchPath);
  • trunk/src/VBox/Runtime/r3/posix/pathhost-posix.cpp

    r28915 r28916  
    250250    {
    251251        if (g_fPassthruUtf8 || !*pszNativePath)
    252             rc = RTStrCopyEx(pszPath, cbPath, pszNativePath, RTSTR_MAX);
     252            rc = RTStrCopy(pszPath, cbPath, pszNativePath);
    253253        else if (cbPath)
    254254            rc = rtStrConvert(pszNativePath, strlen(pszNativePath), g_szFsCodeset,
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