Commit 4cecf538 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix size checks

parent 93705528
......@@ -45,8 +45,8 @@ zathura_image_buffer_create(unsigned int width, unsigned int height)
g_return_val_if_fail(height != 0, NULL);
unsigned int size = 0;
if (checked_umul(width, height, &size) == false ||
checked_umul(size, 3, &size) == false) {
if (checked_umul(width, height, &size) == true ||
checked_umul(size, 3, &size) == true) {
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment