X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/blobdiff_plain/c8f5a865a2ae4a8d6a301299df4a30299eb4e1b9..c1c9f4d2f03061ab9de1563a66f9ee7b816ce8a4:/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);