From a526209e747642c9dbd8c0cbe9ec2b5247c35d5e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 24 Oct 2012 18:22:45 +0100 Subject: More useful title info for images. --- image/mng.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'image/mng.c') 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; -- cgit v1.2.3