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/ico.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'image/ico.c') 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; -- cgit v1.2.3