From 845685ed18bb45e884d9969d660e8c3b08601e52 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 8 Jul 2008 19:27:16 +0200 Subject: [PATCH] lua: fix bug when $XDG_CONFIG_HOME is set Signed-off-by: Julien Danjou --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua.c b/lua.c index 60d82ebd..865b33d8 100644 --- a/lua.c +++ b/lua.c @@ -570,10 +570,10 @@ luaA_parserc(const char *confpatharg) if(a_strlen(confdir)) { - len = a_strlen(confdir) + sizeof(AWESOME_CONFIG_FILE) + 2; + len = a_strlen(confdir) + sizeof(AWESOME_CONFIG_FILE) + sizeof("/awesome/") + 1; confpath = p_new(char, len); a_strcpy(confpath, len, confdir); - a_strcat(confpath, len, "/"); + a_strcat(confpath, len, "/awesome/"); } else {