VirtualBox

Changeset 84681 in vbox


Ignore:
Timestamp:
Jun 4, 2020 3:29:43 PM (5 years ago)
Author:
vboxsync
Message:

IPRt/rtLinuxConstructPathV: allow empty pszFormat as RTSystemQueryFirmwareType seems to want to know if '/sys/' exits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/sysfs.cpp

    r84632 r84681  
    7474
    7575    ssize_t cch = RTStrPrintf2V(pszBuf, cchBuf, pszFormat, va);
    76     AssertReturn(cch > 0, VERR_BUFFER_OVERFLOW);
     76    AssertReturn(cch >= 0, VERR_BUFFER_OVERFLOW);
    7777
    7878    if (*pszBuf != '/')
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