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