diff --git a/kompmgr/kompmgr.c b/kompmgr/kompmgr.c index a9b9f57989..7d9238a133 100644 --- a/kompmgr/kompmgr.c +++ b/kompmgr/kompmgr.c @@ -2146,7 +2146,7 @@ loadConfig(char *filename){ wasNull = True; const char *home = getenv("HOME"); const char *configfile = "/.xcompmgrrc"; - filename = (char*)malloc((strlen(home)+strlen(configfile))*sizeof(char)); + filename = (char*)malloc((strlen(home)+strlen(configfile)+1)*sizeof(char)); strcat(filename, home); strcat(filename, configfile);