Fix an off-by-one error in SmudgeLayer. Fixes #4139.
Merge pull request #4212 from pchote/crater-fix

Fix an off-by-one error in SmudgeLayer.