diff options
Diffstat (limited to 'stream/cookies.c')
-rw-r--r-- | stream/cookies.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/cookies.c b/stream/cookies.c index ea46c42419..40a5b16097 100644 --- a/stream/cookies.c +++ b/stream/cookies.c @@ -191,8 +191,8 @@ static struct cookie_list_type *load_cookies(void) if (dir) { while ((ent = readdir(dir)) != NULL) { if ((ent->d_name)[0] != '.') { - buf = malloc(strlen(getenv("HOME")) + - sizeof("/.mozilla/default/") + + buf = malloc(strlen(getenv("HOME")) + + sizeof("/.mozilla/default/") + strlen(ent->d_name) + sizeof("cookies.txt") + 1); sprintf(buf, "%s/.mozilla/default/%s/cookies.txt", getenv("HOME"), ent->d_name); |