VirtualBox

Changeset 53808 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 14, 2015 7:45:05 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97616
Message:

Additions/x11/vboxvideo: wrong size in IOCtl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/getmode.c

    r53777 r53808  
    459459                || strcmp(pszDevice, "Video Bus") != 0)
    460460                continue;
    461             if (   ioctl(fd, EVIOCGBIT(EV_KEY, KEY_MAX), afKeys) == -1
     461            if (   ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(afKeys)), afKeys) == -1
    462462                || ((   afKeys[KEY_SWITCHVIDEOMODE / BITS_PER_BLOCK]
    463463                     >> KEY_SWITCHVIDEOMODE % BITS_PER_BLOCK) & 1) == 0)
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