The buffer argument to __getgrnam1() was not large enough to contain the group name.
Specify a larger buffer and bufsize.
JrEdcXfrmErange16