Rename pixbuf_size to pixbuf_len

This commit is contained in:
Nigel Tao committed 2018-09-08 08:47:34 +10:00
1 parent 5bf7c5c051
commit ca940b0c56
5 files changed
+26 -24

No files matched your search

+1 -1
View File
@@ -225,7 +225,7 @@ size_t print_color_art(wuffs_base__pixel_buffer* pb) {
// ----
const char* allocate(wuffs_base__image_config* ic) {
image_len = wuffs_base__pixel_config__pixbuf_size(&ic->pixcfg);
image_len = wuffs_base__pixel_config__pixbuf_len(&ic->pixcfg);
if (image_len > (SIZE_MAX / sizeof(wuffs_base__color_u32argb))) {
return "could not allocate dst buffer";
}