fixinc to correct errno