VirtualBox

Changeset 35921 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 9, 2011 7:57:58 PM (14 years ago)
Author:
vboxsync
Message:

Main: strncpy fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r35872 r35921  
    37103710                /* The name is on the form 'ifX: long name', chop it off at the colon. */
    37113711                char szTrunk[8];
    3712                 strncpy(szTrunk, pszHifName, sizeof(szTrunk));
     3712                RTStrCopy(szTrunk, sizeof(szTrunk), pszHifName);
    37133713                char *pszColon = (char *)memchr(szTrunk, ':', sizeof(szTrunk));
    37143714                if (!pszColon)
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