summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Xv.c b/src/Xv.c
index 2a7e6c5..dc1e5f9 100644
--- a/src/Xv.c
+++ b/src/Xv.c
@@ -357,6 +357,10 @@ XvQueryEncodings(
}
_XRead(dpy, buffer, (long) size);
}
+ else if (rep.num_encodings != 0) {
+ status = XvBadReply;
+ goto out;
+ }
/* GET ENCODINGS */