diff --git a/src/sdf/ftbsdf.c b/src/sdf/ftbsdf.c index db4a2dd11..d837a7956 100644 --- a/src/sdf/ftbsdf.c +++ b/src/sdf/ftbsdf.c @@ -928,7 +928,7 @@ /* Forward pass of rows (left -> right). Leave the first */ /* column, which gets covered in the backward pass. */ - for ( i = 1; i < w; i++ ) + for ( i = 1; i < w - 1; i++ ) { index = j * w + i; current = dm + index; @@ -997,7 +997,7 @@ /* Forward pass of rows (left -> right). Leave the first */ /* column, which gets covered in the backward pass. */ - for ( i = 1; i < w; i++ ) + for ( i = 1; i < w - 1; i++ ) { index = j * w + i; current = dm + index;