network->n_aliases[i] = NULL;
network->n_aliases[i+1] = NULL;
_nss_nisplus_parse_netent (nis_result *result, struct netent *network,			    char *buffer, size_t buflen, int *errnop){  char *first_unused = buffer;  size_t room_left = buflen;  unsigned int i;  char *p, *line;  if (result == NULL)    return 0;  if ((result->status != NIS_SUCCESS && result->status != NIS_S_SUCCESS)      || __type_of (result->objects.objects_val) != NIS_ENTRY_OBJ      || strcmp (result->objects.objects_val[0].EN_data.en_type,		 "networks_tbl") != 0      || result->objects.objects_val[0].EN_data.en_cols.en_cols_len < 3)    return 0;  if (NISENTRYLEN(0, 0, result) >= room_left)    {      /* The line is too long for our buffer.  */    no_more_room:      *errnop = ERANGE;      return -1;    }  strncpy (first_unused, NISENTRYVAL(0, 0, result),           NISENTRYLEN (0, 0, result));  first_unused[NISENTRYLEN (0, 0, result)] = '\0';  network->n_name = first_unused;  room_left -= (strlen (first_unused) +1);  first_unused += strlen (first_unused) +1;  network->n_addrtype = 0;  network->n_net = inet_network (NISENTRYVAL (0, 2, result));  p = first_unused;  line = p;  for (i = 0; i < result->objects.objects_len; i++)    {      if (strcmp (NISENTRYVAL (i, 1, result), network->n_name) != 0)        {          if (NISENTRYLEN (i, 1, result) + 2 > room_left)	    goto no_more_room;	  *p++ = ' ';          p = __stpncpy (p, NISENTRYVAL (i, 1, result),			 NISENTRYLEN (i, 1, result));          *p = '\0';          room_left -= (NISENTRYLEN (i, 1, result) + 1);        }    }  ++p;  first_unused = p;  /* Adjust the pointer so it is aligned for     storing pointers.  */  first_unused += __alignof__ (char *) - 1;  first_unused -= ((first_unused - (char *) 0) % __alignof__ (char *));  network->n_aliases = (char **) first_unused;  if (room_left < 2 * sizeof (char *))    goto no_more_room;  room_left -= (2 * sizeof (char *));  network->n_aliases[0] = NULL;    i = 0;  while (*line != '\0')    {      /* Skip leading blanks.  */      while (isspace (*line))        line++;      if (*line == '\0')        break;      if (room_left < sizeof (char *))	goto no_more_room;      room_left -= sizeof (char *);      network->n_aliases[i] = line;      while (*line != '\0' && *line != ' ')        ++line;      if (line != network->n_aliases[i])        {          if (*line != '\0')            {              *line = '\0';              ++line;            }          ++i;        }      else        network->n_aliases[i] = NULL;    }  return 1;}