GR_MAX_SNIPSET
char snipset[GR_MAX_SNIPSET];
strncpy(nres->snipset, tmp, GR_MAX_SNIPSET-1);
nres->snipset[GR_MAX_SNIPSET-1] = '\0';