Fix off-by-one error in size parsing in proc_ratesample_open()

sizeof("string") includes the trailing 0, strlen("string") doesn't.