VirtualBox

Changeset 55902 in vbox


Ignore:
Timestamp:
May 18, 2015 11:14:05 AM (9 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxGuestLib: more precise scanf format string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r54852 r55902  
    486486    {
    487487        char c1, c2;
    488         cMatches = sscanf(szModeParms, "%ux%ux%u%c%ux%u,%u%c", &cx, &cy, &cBits,
     488        cMatches = sscanf(szModeParms, "%5ux%5ux%2u%c%5ux%5u,%1u%c", &cx, &cy, &cBits,
    489489                          &c1, &x, &y, &fEnabled, &c2);
    490490        if ((cMatches == 7 && c1 == ',') || cMatches == 3)
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