$OpenBSD: patch-config_c,v 1.1 2018/05/24 16:04:35 bket Exp $

Fix segfault. Taken from https://github.com/lastpass/lastpass-cli/pull/411

Index: config.c
--- config.c.orig
+++ config.c
@@ -175,7 +175,7 @@ enum config_type config_path_type(const char *name)
 	}
 
 	/* lock files are runtime */
-	if (strlen(name) >= 5 && !strcmp(name-5, ".lock")) {
+	if (strlen(name) >= 5 && !strcmp(name + strlen(name) - 5, ".lock")) {
 		return CONFIG_RUNTIME;
 	}
 
