VirtualBox

Changeset 1426 in vbox for trunk


Ignore:
Timestamp:
Mar 12, 2007 1:45:51 PM (18 years ago)
Author:
vboxsync
Message:

off-by-one error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r489 r1426  
    292292        else
    293293        {
    294             if (pData->iMsg >= sizeof(pData->szMsg))
     294            if (pData->iMsg >= sizeof(pData->szMsg)-1)
    295295            {
    296296                pData->szMsg[pData->iMsg] = '\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