VirtualBox

Changeset 70108 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Dec 13, 2017 12:35:13 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119656
Message:

Guest properties: Added a length check for GuestPropWriteFlags() and got rid of strcpy(), as this now also is marked as being deprecated on macOS, take #2.

File:
1 edited

Legend:

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

    r70090 r70108  
    59745974    {
    59755975        char szFlags[GUEST_PROP_MAX_FLAGS_LEN];
    5976         if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags)))
     5976        if (RT_FAILURE(GuestPropWriteFlags(fFlags, szFlags, sizeof(szFlags))))
    59775977            Log(("Failed to set the global flags.\n"));
    59785978        else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette