X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/01a2fe8e4dc87fdb256d95504482acf0fb06b67b..4be8cb2b59106a6c55a235f713cc4ac2ba655df8:/libxatom.c diff --git a/libxatom.c b/libxatom.c index 3bca18f..5dea9ef 100644 --- a/libxatom.c +++ b/libxatom.c @@ -82,7 +82,7 @@ Atom xatom_get(Display *d, Window w, Atom p) &type, &fmt, /* Actual type and format */ &n, &left, /* Amount read, and bytes left */ &buf) /* Where to put the buffer */ - != Success || + != Success || type != XA_ATOM || n < 1 || fmt < 32) return (None);