summaryrefslogtreecommitdiff
path: root/image/mng.c
diff options
context:
space:
mode:
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;