app: in gimpbrushcore-loops, fix memory corruption in clear_edges()

s/width/height/

Fixes commit 9d19e804ed.

(cherry picked from commit 72d4977574)
This commit is contained in:
Ell
2019-02-13 12:32:03 -05:00
parent 3ff2285ba8
commit 0a82bd1109

View File

@ -55,8 +55,8 @@ clear_edges (GimpTempBuf *buf,
guchar *data; guchar *data;
const Babl *format = gimp_temp_buf_get_format (buf); const Babl *format = gimp_temp_buf_get_format (buf);
gint bpp = babl_format_get_bytes_per_pixel (format); gint bpp = babl_format_get_bytes_per_pixel (format);
gint width = gimp_temp_buf_get_width (buf); gint width = gimp_temp_buf_get_width (buf);
gint height = gimp_temp_buf_get_width (buf); gint height = gimp_temp_buf_get_height (buf);
if (top + bottom >= height || left + right >= width) if (top + bottom >= height || left + right >= width)
{ {