Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX

and HOST_NAME_MAX+1, respectively.

ok doug@
This commit is contained in:
okan
2015-01-19 14:54:16 +00:00
parent c412f040df
commit 7936b9b2a7
15 changed files with 33 additions and 20 deletions

View File

@@ -260,7 +260,7 @@ TAILQ_HEAD(mousebinding_q, binding);
struct cmd {
TAILQ_ENTRY(cmd) entry;
char *name;
char path[MAXPATHLEN];
char path[PATH_MAX];
};
TAILQ_HEAD(cmd_q, cmd);
@@ -292,7 +292,7 @@ struct conf {
int snapdist;
struct gap gap;
char *color[CWM_COLOR_NITEMS];
char known_hosts[MAXPATHLEN];
char known_hosts[PATH_MAX];
#define CONF_FONT "sans-serif:pixelsize=14:bold"
char *font;
Cursor cursor[CF_NITEMS];