diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-24 18:22:45 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-24 18:22:45 +0100 |
commit | a526209e747642c9dbd8c0cbe9ec2b5247c35d5e (patch) | |
tree | ccbcffa6952976c8c3f0a887c0f9e450de99bf7d /image/ico.c | |
parent | 719a36972b60165fc45b956703a4860855145548 (diff) | |
download | netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.gz netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.bz2 |
More useful title info for images.
Diffstat (limited to 'image/ico.c')
-rw-r--r-- | image/ico.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/image/ico.c b/image/ico.c index b9abd7d1c..ff8f9204c 100644 --- a/image/ico.c +++ b/image/ico.c @@ -100,7 +100,7 @@ static bool nsico_convert(struct content *c) union content_msg_data msg_data; const char *data; unsigned long size; - char title[100]; + char title[512]; /* set the ico data */ data = content__get_source_data(c, &size); @@ -125,8 +125,9 @@ static bool nsico_convert(struct content *c) /* Store our content width and description */ c->width = ico->ico->width; c->height = ico->ico->height; - snprintf(title, sizeof(title), messages_get("ICOTitle"), - c->width, c->height, size); + snprintf(title, sizeof(title), messages_get("ICOTitle"), + nsurl_access_leaf(llcache_handle_get_url(c->llcache)), + c->width, c->height); content__set_title(c, title); c->size += (ico->ico->width * ico->ico->height * 4) + 16 + 44; |