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/gif.c | |
parent | 719a36972b60165fc45b956703a4860855145548 (diff) | |
download | netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.gz netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.bz2 |
More useful title info for images.
Diffstat (limited to 'image/gif.c')
-rw-r--r-- | image/gif.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/image/gif.c b/image/gif.c index 93316e03e..a33f56200 100644 --- a/image/gif.c +++ b/image/gif.c @@ -242,7 +242,7 @@ static bool nsgif_convert(struct content *c) union content_msg_data msg_data; const char *data; unsigned long size; - char title[100]; + char title[512]; /* Get the animation */ data = content__get_source_data(c, &size); @@ -279,7 +279,8 @@ static bool nsgif_convert(struct content *c) c->width = gif->gif->width; c->height = gif->gif->height; snprintf(title, sizeof(title), messages_get("GIFTitle"), - c->width, c->height, size); + nsurl_access_leaf(llcache_handle_get_url(c->llcache)), + c->width, c->height); content__set_title(c, title); c->size += (gif->gif->width * gif->gif->height * 4) + 16 + 44; |