summaryrefslogtreecommitdiff
path: root/hw/xfree86/parser/DRI.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/parser/DRI.c')
-rw-r--r--hw/xfree86/parser/DRI.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/parser/DRI.c b/hw/xfree86/parser/DRI.c
index 18644bcc7..68a6db90b 100644
--- a/hw/xfree86/parser/DRI.c
+++ b/hw/xfree86/parser/DRI.c
@@ -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: