X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/xtoys/blobdiff_plain/01a2fe8e4dc87fdb256d95504482acf0fb06b67b..243654c4bf8293284640aedced9914680ea27f10:/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);