VirtualBox

Changeset 13534 in vbox


Ignore:
Timestamp:
Oct 23, 2008 1:04:05 PM (16 years ago)
Author:
vboxsync
Message:

Main/Solaris: fixed strncpy -> strlcpy (possibly missing NULL terminator)

File:
1 edited

Legend:

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

    r13522 r13534  
    12731273# elif defined(RT_OS_SOLARIS)
    12741274                    /* The name is on the form format 'ifX[:1] - long name, chop it off at space. */
    1275                     char szTrunk[8];
    1276                     strncpy(szTrunk, pszHifName, sizeof(szTrunk));
     1275                    char szTrunk[256];
     1276                    strlcpy(szTrunk, pszHifName, sizeof(szTrunk));
    12771277                    char *pszSpace = (char *)memchr(szTrunk, ' ', sizeof(szTrunk));
    12781278
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