* pancake <[EMAIL PROTECTED]> [070617 16:14]:
> Hacky patch to add xpaste support to dmenu is attached.
>
> Key: ( ControlMask | XK_i )
>
> This is just a little mockup with sselp and dmenu, it works, but should
> probably
> be revised and reduced.
>
> --pancake
>
> +static void *
> +emallocz(unsigned int size) {
> + void *res = calloc(1, size);
> +
> + if(!res) {
> + fprintf(stderr, "fatal: could not malloc() %u bytes\n", size);
> + exit(EXIT_FAILURE);
> + }
> + return res;
> +}
> +
You don't need it, there's a emalloc() in util.c.
--
Alexander Polakov | http://polachok.livejournal.com