On Thu, 8 Jul 2010 16:50:48 +0100, Daniel Stone <[email protected]> wrote:
> Jesus, how embarassment. Is the following OK?
Yup, looks good.
> @@ -159,6 +159,8 @@ XStringToKeysym(_Xconst char *s)
> if (strncmp(s, "XF86_", 5) == 0) {
> KeySym ret;
> char *tmp = strdup(s);
> + if (!tmp)
> + return NoSymbol;
> memmove(&tmp[4], &tmp[5], strlen(s) - 5 + 1);
> ret = XStringToKeysym(tmp);
> free(tmp);
--
[email protected]
pgphJeJ4MIRZ1.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
