Search results

  1. Chillzy

    Why does this cause a seg fault?

    According to my IDE (CodeBlocks), this bit of code causes a seg fault. I'm trying to fix this but I don't even know why this causes a seg fault so an explanation would be helpful. ``` unsigned char* pixel_offset = data + (j + width * i) * byte_per_pixel; unsigned char y...
Top