Fixed off-by-one bug in the calculation of shm_name->len

This rolls back to commit 8e9486fd2d3123b498c00f097e9b178c159daef2.