diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2015-01-15 10:14:08 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2015-01-15 10:14:08 +0000 |
commit | fde71b37d247c939c0f57c08a104b4ab30647de3 (patch) | |
tree | b230a53cb985e678a4ed19d9539d2ae033d5ed87 | |
parent | Merge branch 'bug/changelog' (diff) | |
parent | Do not use C99 printf format specifiers and asprintf (diff) | |
download | w3m-fde71b37d247c939c0f57c08a104b4ab30647de3.tar.gz w3m-fde71b37d247c939c0f57c08a104b4ab30647de3.zip |
Merge branch 'bug/printf'
Diffstat (limited to '')
-rw-r--r-- | cookie.c | 4 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | map.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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 : "", @@ -5841,7 +5841,7 @@ set_buffer_environ(Buffer *buf) set_environ("W3M_CURRENT_FORM", form2str((FormItemList *)a->url)); else set_environ("W3M_CURRENT_FORM", ""); - set_environ("W3M_CURRENT_LINE", Sprintf("%d", + set_environ("W3M_CURRENT_LINE", Sprintf("%ld", l->real_linenumber)->ptr); set_environ("W3M_CURRENT_COLUMN", Sprintf("%d", buf->currentColumn + @@ -573,7 +573,7 @@ page_info_panel(Buffer *buf) "<tr valign=top><td nowrap>Number of lines<td>", Sprintf("%d", all)->ptr, "<tr valign=top><td nowrap>Transferred bytes<td>", - Sprintf("%d", buf->trbyte)->ptr, NULL); + Sprintf("%lu", (unsigned long)buf->trbyte)->ptr, NULL); a = retrieveCurrentAnchor(buf); if (a != NULL) { |