cgroups: add check for strcpy destination string overflow