diff --git a/laborator/content/operatii-memorie-gdb/solution/3-pixels/pixels.c b/laborator/content/operatii-memorie-gdb/solution/3-pixels/pixels.c index 14ed4f2c..ca5cac52 100644 --- a/laborator/content/operatii-memorie-gdb/solution/3-pixels/pixels.c +++ b/laborator/content/operatii-memorie-gdb/solution/3-pixels/pixels.c @@ -34,7 +34,7 @@ void reversePic(Picture *pic) { for (int i = 0; i < pic->height / 2; ++i) swapRows(pic->pix_array[i], pic->pix_array[pic->height - 1 - i], - pic->height); + pic->width); } int main(void)