VirtualBox

Changeset 62613 in vbox for trunk/src


Ignore:
Timestamp:
Jul 28, 2016 10:26:09 AM (8 years ago)
Author:
vboxsync
Message:

Please, don't use RTStrPrintf to copy strings, RTStrCopy does that safely and reasonably quickly. RTStrPritnf is complicated and slow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchHda.cpp

    r62612 r62613  
    28092809# else
    28102810            strmCfg.DestSource.Source = PDMAUDIORECSOURCE_LINE;
    2811             RTStrPrintf(strmCfg.szName, RT_ELEMENTS(strmCfg.szName), "Line In");
     2811            RTStrCopy(strmCfg.szName, sizeof(strmCfg.szName), "Line In");
    28122812# endif
    28132813            break;
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