Fix copy paste typo in swap_byte_order
authorPascal Terjan <pterjan@google.com>
Mon, 27 Oct 2014 23:50:20 +0000 (00:50 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Tue, 28 Oct 2014 03:14:24 +0000 (04:14 +0100)
obrender/color.c

index 86a8b3e..4295367 100644 (file)
@@ -239,7 +239,7 @@ static void swap_byte_order(XImage *im)
 
     di = 0;
     for (y = 0; y < im->height; ++y) {
-        for (x = 0; x < im->height; ++x) {
+        for (x = 0; x < im->width; ++x) {
             gchar *c = &im->data[di + x * im->bits_per_pixel / 8];
             gchar t;