Bug #13860: Ensure that the DRI mode is in octal format.

This commit is contained in:
David Nusinow 2008-03-02 17:12:02 -05:00
commit b5ce0e1d0b
2 changed files with 7 additions and 0 deletions

View file

@ -117,6 +117,8 @@ xf86parseDRISection (void)
case MODE:
if (xf86getSubToken (&(ptr->dri_comment)) != NUMBER)
Error (NUMBER_MSG, "Mode");
if (val.numType != PARSE_OCTAL)
Error (MUST_BE_OCTAL_MSG, val.num);
ptr->dri_mode = val.num;
break;
case BUFFERS: