diff options
Diffstat (limited to 'image/webp.c')
-rw-r--r-- | image/webp.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/image/webp.c b/image/webp.c index 080cf8bb0..fc4356c01 100644 --- a/image/webp.c +++ b/image/webp.c @@ -78,7 +78,7 @@ static bool webp_convert(struct content *c) unsigned char *imagebuf = NULL; unsigned long size; int width = 0, height = 0; - char title[100]; + char *title; int res = 0; uint8_t *res_p = NULL; @@ -116,9 +116,15 @@ static bool webp_convert(struct content *c) c->width = width; c->height = height; - snprintf(title, sizeof(title), messages_get("WebPTitle"), - width, height, size); - content__set_title(c, title); + + /* set title */ + title = messages_get_buff("WebPTitle", + nsurl_access_leaf(llcache_handle_get_url(c->llcache)), + c->width, c->height); + if (title != NULL) { + content__set_title(c, title); + free(title); + } bitmap_modified(webp->bitmap); |