openbsd-ports/x11/keynav/patches/patch-keynav_c
jca dba5ed136e Update to keynav-0.20101014.3067.
- upstream versioning change -> use EPOCH
- MAKE_FLAGS instead of Makefile patching (bonus: respect DEBUG=-g)
- patch to avoid a segfault at runtime

This now uses libxdo from x11/xdotool instead of a bundled version, and
cairo for drawing.

Missing gettext MODULE spotted by ajacoutot@.  ok landry@
2015-01-26 12:54:01 +00:00

13 lines
465 B
Plaintext

$OpenBSD: patch-keynav_c,v 1.1 2015/01/26 12:54:01 jca Exp $
--- keynav.c.orig Wed Oct 13 09:27:51 2010
+++ keynav.c Mon Jan 26 01:39:45 2015
@@ -526,7 +526,7 @@ int parse_config_line(char *orig_line) {
tokctx = line;
keyseq = strdup(strtok_r(line, " ", &tokctx));
- commands = strdup(tokctx);
+ commands = (tokctx != NULL) ? strdup(tokctx) : NULL;
/* A special config option that will clear all keybindings */
if (strcmp(keyseq, "clear") == 0) {