diff options
author | okan <okan> | 2008-06-05 00:07:05 +0000 |
---|---|---|
committer | okan <okan> | 2008-06-05 00:07:05 +0000 |
commit | efbfc5fa42ad9d9bb65ef01635b9598a0cd36de0 (patch) | |
tree | 78a5a7dcd1b437549373349321616e990e04d7d4 /conf.c | |
parent | b86d3cfae92475f332fca9c5312bb40efc6d032b (diff) | |
download | cwm-efbfc5fa42ad9d9bb65ef01635b9598a0cd36de0.tar.gz cwm-efbfc5fa42ad9d9bb65ef01635b9598a0cd36de0.tar.xz cwm-efbfc5fa42ad9d9bb65ef01635b9598a0cd36de0.zip |
actually honor termpath and lockpath if specified in cwmrc.
"now" oga@
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/conf.c b/conf.c index d328f52..33a02dc 100644 --- a/conf.c +++ b/conf.c @@ -36,11 +36,11 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags) { /* "term" and "lock" have special meanings. */ - if (strcmp(label, "term") == 0) { - strlcpy(Conf.termpath, image, sizeof(Conf.termpath)); - } else if (strcmp(label, "lock") == 0) { - strlcpy(Conf.lockpath, image, sizeof(Conf.lockpath)); - } else { + if (strcmp(label, "term") == 0) + strlcpy(c->termpath, image, sizeof(c->termpath)); + else if (strcmp(label, "lock") == 0) + strlcpy(c->lockpath, image, sizeof(c->lockpath)); + else { struct cmd *cmd; XMALLOC(cmd, struct cmd); cmd->flags = flags; |