Update restore_ped.cpp

fix buffer overflow while the genotype in infer_ped is too long