summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-24 18:22:45 +0100
commita526209e747642c9dbd8c0cbe9ec2b5247c35d5e (patch)
treeccbcffa6952976c8c3f0a887c0f9e450de99bf7d /image/mng.c
parent719a36972b60165fc45b956703a4860855145548 (diff)
downloadnetsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.gz
netsurf-a526209e747642c9dbd8c0cbe9ec2b5247c35d5e.tar.bz2
More useful title info for images.
Diffstat (limited to 'image/mng.c')
-rw-r--r--image/mng.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/image/mng.c b/image/mng.c
index 67625f026..9ca9a2d48 100644
--- a/image/mng.c
+++ b/image/mng.c
@@ -541,7 +541,7 @@ static bool nsmng_convert(struct content *c)
nsmng_content *mng = (nsmng_content *) c;
mng_retcode status;
unsigned long size;
- char title[100];
+ char title[512];
assert(c != NULL);
@@ -556,9 +556,9 @@ static bool nsmng_convert(struct content *c)
/* Set the title
*/
- snprintf(title, sizeof(title),
- messages_get("MNGTitle"),
- c->width, c->height, size);
+ snprintf(title, sizeof(title), messages_get("MNGTitle"),
+ nsurl_access_leaf(llcache_handle_get_url(c->llcache)),
+ c->width, c->height);
content__set_title(c, title);
c->size += c->width * c->height * 4;
@@ -599,7 +599,7 @@ static bool nsjpng_convert(struct content *c)
nsmng_content *mng = (nsmng_content *) c;
mng_retcode status;
unsigned long size;
- char title[100];
+ char title[512];
mng_handle handle;
assert(c != NULL);
@@ -614,9 +614,9 @@ static bool nsjpng_convert(struct content *c)
}
/* Set the title */
- snprintf(title, sizeof(title),
- messages_get("PNGTitle"),
- c->width, c->height, size);
+ snprintf(title, sizeof(title), messages_get("PNGTitle"),
+ nsurl_access_leaf(llcache_handle_get_url(c->llcache)),
+ c->width, c->height);
content__set_title(c, title);
c->size += c->width * c->height * 4;