VirtualBox

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


Ignore:
Timestamp:
Jan 24, 2024 1:37:01 PM (12 months ago)
Author:
vboxsync
Message:

iprt/string.h,VBoxGuest-linux.c,linux/sharedfolders/vfsmod.c: Replaced the very few RT_STRSCPY uses with RTStrCopy and removed the macro. bugref:10584

Location:
trunk/src/VBox/Additions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r102990 r103024  
    14111411    }
    14121412    else if (pParam->name[0] != 'd')
    1413         RT_STRSCPY(&g_szLogGrp[0], pszValue, sizeof(g_szLogGrp));
    1414 
     1413        RTStrCopy(&g_szLogGrp[0], sizeof(g_szLogGrp), pszValue);
    14151414    return 0;
    14161415}
     
    14371436    }
    14381437    else if (pParam->name[0] != 'd')
    1439         RT_STRSCPY(&g_szLogFlags[0], pszValue, sizeof(g_szLogFlags));
     1438        RTStrCopy(&g_szLogFlags[0], sizeof(g_szLogFlags), pszValue);
    14401439    return 0;
    14411440}
     
    14621461    }
    14631462    else if (pParam->name[0] != 'd')
    1464         RT_STRSCPY(&g_szLogDst[0], pszValue, sizeof(g_szLogDst));
     1463        RTStrCopy(&g_szLogDst[0], sizeof(g_szLogDst), pszValue);
    14651464    return 0;
    14661465}
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.c

    r102990 r103024  
    14091409    case Opt_iocharset:
    14101410    case Opt_nls:
    1411         RT_STRSCPY(info->nls_name, param->string, sizeof(info->nls_name));
     1411        RTStrCopy(info->nls_name, sizeof(info->nls_name), param->string);
    14121412        break;
    14131413    case Opt_uid:
     
    14701470        break;
    14711471    case Opt_tag:
    1472         RT_STRSCPY(info->szTag, param->string, sizeof(info->szTag));
     1472        RTStrCopy(info->szTag, sizeof(info->szTag), param->string);
    14731473        break;
    14741474    default:
     
    15291529
    15301530    /* fc->source (the shared folder name) is set after vbsf_init_fs_ctx() */
    1531     RT_STRSCPY(info->name, fc->source, sizeof(info->name));
     1531    RTStrCopy(info->name, sizeof(info->name), fc->source);
    15321532
    15331533# if RTLNX_VER_MAX(5,3,0)
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