Fix off-by-one error in setOverrideMods (strlcpy copies n-1 bytes). Fixes ticket:3567.