Skip to content

Commit

Permalink
Fix typo in calculation for exptected image length
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweets authored Jul 22, 2021
1 parent 9debc92 commit e28b181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void create_csv_hint_string(GVariant *hints, char **string_ptr) {
g_variant_get(value, "(iiibii@ay)", &width, &height, &row_stride,
&alpha_bool, &bits_per_sample, &channels, &pixel_data);
pixel_stride = (channels * bits_per_sample + 7) / 8;
expected_length = (height - 1) * (width * row_stride) *
expected_length = (height - 1) * (width + row_stride) *
pixel_stride;

pixels = g_variant_get_fixed_array(pixel_data, &real_length,
Expand Down

0 comments on commit e28b181

Please sign in to comment.