diff options
author | okan | 2014-02-02 15:46:05 +0000 |
---|---|---|
committer | okan | 2014-02-02 15:46:05 +0000 |
commit | f66dedc8c6a186274d1dbc6220671401eba44b62 (patch) | |
tree | 5534751cdcb72960f956f6036133c4d0bb17ebb0 /calmwm.h | |
parent | 028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c (diff) | |
download | cwm-f66dedc8c6a186274d1dbc6220671401eba44b62.tar.gz |
The menu already limits entries with MENU_MAXENTRY, so don't bother
holding a command name limit as well.
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |