WebPTranslator: Fix -Wformat-security
Change-Id: Ide2ea81d8c66684d3bd101599ae2110970f3f66b Reviewed-on: https://review.haiku-os.org/c/haiku/+/3321 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
3d29f848c8
commit
1e4ea7c351
@@ -151,7 +151,7 @@ WebPTranslator::DerivedIdentify(BPositionIO* stream,
|
|||||||
info->group = B_TRANSLATOR_BITMAP;
|
info->group = B_TRANSLATOR_BITMAP;
|
||||||
info->quality = WEBP_IN_QUALITY;
|
info->quality = WEBP_IN_QUALITY;
|
||||||
info->capability = WEBP_IN_CAPABILITY;
|
info->capability = WEBP_IN_CAPABILITY;
|
||||||
snprintf(info->name, sizeof(info->name), B_TRANSLATE("WebP image"));
|
strlcpy(info->name, B_TRANSLATE("WebP image"), sizeof(info->name));
|
||||||
strcpy(info->MIME, "image/webp");
|
strcpy(info->MIME, "image/webp");
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user