Lines Matching refs:current

580   char        current[MAX_REALM_LN];  in add_to_transited()  local
631 current[i++] = *otrans++; in add_to_transited()
637 current[i] = '\0'; in add_to_transited()
644 while (current[0]) { in add_to_transited()
648 clst = strlen(current) - 1; in add_to_transited()
649 if (current[0] == ' ') { in add_to_transited()
650 strncpy(exp, current+1, sizeof(exp) - 1); in add_to_transited()
653 else if ((current[0] == '/') && (prev[0] == '/')) { in add_to_transited()
656 if (strlen(exp) + strlen(current) + 1 >= MAX_REALM_LN) { in add_to_transited()
660 strncat(exp, current, sizeof(exp) - 1 - strlen(exp)); in add_to_transited()
662 else if (current[clst] == '.') { in add_to_transited()
663 strncpy(exp, current, sizeof(exp) - 1); in add_to_transited()
672 strncpy(exp, current, sizeof(exp) - 1); in add_to_transited()
720 current[sizeof(current) - 1] = '\0'; in add_to_transited()
721 if (strlen(current) + (pl>0?pl:-pl) + 2 >= MAX_REALM_LN) { in add_to_transited()
725 strncat(current, ",", sizeof(current) - 1 - strlen(current)); in add_to_transited()
727 strncat(current, realm, (unsigned) pl); in add_to_transited()
730 strncat(current, realm+strlen(realm)+pl, (unsigned) (-pl)); in add_to_transited()
746 current[0] = '\0'; in add_to_transited()
748 if (strlen(current) + (pl1>0?pl1:-pl1) + 1 >= MAX_REALM_LN) { in add_to_transited()
753 strncat(current, realm, (unsigned) pl1); in add_to_transited()
756 strncat(current, realm+strlen(realm)+pl1, (unsigned) (-pl1)); in add_to_transited()
761 if (strlen(current) + 2 >= MAX_REALM_LN) { in add_to_transited()
765 strncat(current, " ", sizeof(current) - 1 - strlen(current)); in add_to_transited()
766 current[sizeof(current) - 1] = '\0'; in add_to_transited()
768 if (strlen(current) + strlen(realm) + 1 >= MAX_REALM_LN) { in add_to_transited()
772 strncat(current, realm, sizeof(current) - 1 - strlen(current)); in add_to_transited()
773 current[sizeof(current) - 1] = '\0'; in add_to_transited()
775 if (strlen(current) + (pl>0?pl:-pl) + 2 >= MAX_REALM_LN) { in add_to_transited()
779 strncat(current,",", sizeof(current) - 1 - strlen(current)); in add_to_transited()
780 current[sizeof(current) - 1] = '\0'; in add_to_transited()
782 strncat(current, exp, (unsigned) pl); in add_to_transited()
785 strncat(current, exp+strlen(exp)+pl, (unsigned)(-pl)); in add_to_transited()
797 if (strlen(trans) + strlen(current) + 1 >= MAX_REALM_LN) { in add_to_transited()
801 strcat(trans, current); in add_to_transited()
806 strncpy(current, next, sizeof(current) - 1); in add_to_transited()
807 current[sizeof(current) - 1] = '\0'; in add_to_transited()