aboutsummaryrefslogtreecommitdiffstats
path: root/cookie.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-01-15 10:14:08 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-01-15 10:14:08 +0000
commitfde71b37d247c939c0f57c08a104b4ab30647de3 (patch)
treeb230a53cb985e678a4ed19d9539d2ae033d5ed87 /cookie.c
parentMerge branch 'bug/changelog' (diff)
parentDo not use C99 printf format specifiers and asprintf (diff)
downloadw3m-fde71b37d247c939c0f57c08a104b4ab30647de3.tar.gz
w3m-fde71b37d247c939c0f57c08a104b4ab30647de3.zip
Merge branch 'bug/printf'
Diffstat (limited to 'cookie.c')
-rw-r--r--cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cookie.c b/cookie.c
index 8020f6d..c11649c 100644
--- a/cookie.c
+++ b/cookie.c
@@ -247,7 +247,7 @@ find_cookie(ParsedURL *pu)
Strcat(tmp, Sprintf("; $Domain=\"%s\"", p1->domain->ptr));
if (p1->portl)
Strcat(tmp,
- Sprintf("; $Port=\"%s\"", portlist2str(p1->portl)));
+ Sprintf("; $Port=\"%s\"", portlist2str(p1->portl)->ptr));
}
}
return tmp;
@@ -463,7 +463,7 @@ save_cookies(void)
continue;
fprintf(fp, "%s\t%s\t%s\t%ld\t%s\t%s\t%d\t%d\t%s\t%s\t%s\n",
parsedURL2Str(&p->url)->ptr,
- p->name->ptr, p->value->ptr, p->expires,
+ p->name->ptr, p->value->ptr, (long)p->expires,
p->domain->ptr, p->path->ptr, p->flag,
p->version, str2charp(p->comment),
(p->portl) ? portlist2str(p->portl)->ptr : "",