Do not use C99 printf format specifiers and asprintf

This commit is contained in:
Tatsuya Kinoshita
2015-01-15 19:13:51 +09:00
parent ec8272d8fe
commit 5e9545756b
3 changed files with 98 additions and 22 deletions

View File

@@ -461,9 +461,9 @@ save_cookies(void)
for (p = First_cookie; p; p = p->next) {
if (!(p->flag & COO_USE) || p->flag & COO_DISCARD)
continue;
fprintf(fp, "%s\t%s\t%s\t%lld\t%s\t%s\t%d\t%d\t%s\t%s\t%s\n",
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, (long long) 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 : "",