aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2014-02-02 15:46:05 +0000
committerokan2014-02-02 15:46:05 +0000
commitf66dedc8c6a186274d1dbc6220671401eba44b62 (patch)
tree5534751cdcb72960f956f6036133c4d0bb17ebb0 /calmwm.h
parent028326e24d7bb15a9c17b4c7e63a84b8b3af8c9c (diff)
downloadcwm-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.h9
1 files changed, 4 insertions, 5 deletions
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);