lua: fix bug when $XDG_CONFIG_HOME is set

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-08 19:27:16 +02:00
parent 1009d6a992
commit 845685ed18
1 changed files with 2 additions and 2 deletions

4
lua.c
View File

@ -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
{