From f66dedc8c6a186274d1dbc6220671401eba44b62 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 2 Feb 2014 15:46:05 +0000 Subject: The menu already limits entries with MENU_MAXENTRY, so don't bother holding a command name limit as well. --- calmwm.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index c6f9511..4b17075 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.254 2014/01/30 22:17:22 okan Exp $ + * $OpenBSD: calmwm.h,v 1.255 2014/02/02 15:46:05 okan Exp $ */ #ifndef _CALMWM_H_ @@ -259,10 +259,9 @@ TAILQ_HEAD(keybinding_q, binding); TAILQ_HEAD(mousebinding_q, binding); struct cmd { - TAILQ_ENTRY(cmd) entry; -#define CMD_MAXNAMELEN 256 - char name[CMD_MAXNAMELEN]; - char path[MAXPATHLEN]; + TAILQ_ENTRY(cmd) entry; + char *name; + char path[MAXPATHLEN]; }; TAILQ_HEAD(cmd_q, cmd); -- cgit v1.2.3-2-gb3c3