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/png.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'image/png.c') diff --git a/image/png.c b/image/png.c index 6f1d926ee..99482d63d 100644 --- a/image/png.c +++ b/image/png.c @@ -510,7 +510,7 @@ png_cache_convert_error: static bool nspng_convert(struct content *c) { nspng_content *png_c = (nspng_content *) c; - char title[100]; + char title[512]; assert(png_c->png != NULL); assert(png_c->info != NULL); @@ -520,7 +520,8 @@ static bool nspng_convert(struct content *c) /* set title text */ snprintf(title, sizeof(title), messages_get("PNGTitle"), - c->width, c->height, c->size); + nsurl_access_leaf(llcache_handle_get_url(c->llcache)), + c->width, c->height); content__set_title(c, title); -- cgit v1.2.3