lua: fix bug when $XDG_CONFIG_HOME is set
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1009d6a992
commit
845685ed18
4
lua.c
4
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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue