(k_afsklog_all_local_cells): Use `k_concat'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1626 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -210,11 +210,13 @@ k_afsklog_all_local_cells(char *krealm, uid_t uid) | ||||
|     int num_cells = sizeof(cells) / sizeof(cells[0]); | ||||
|     int index = 0; | ||||
|  | ||||
|     char *p, home[MaxPathLen]; | ||||
|     char *p; | ||||
|      | ||||
|     if ((p = getenv("HOME"))) { | ||||
| 	sprintf(home, "%s/.TheseCells", p); | ||||
| 	k_find_cells(home, cells, num_cells, &index); | ||||
| 	char home[MaxPathLen]; | ||||
|  | ||||
| 	if (k_concat(home, sizeof(home), p, "/.TheseCells", NULL) == 0) | ||||
| 	    k_find_cells(home, cells, num_cells, &index); | ||||
|     } | ||||
|     k_find_cells(_PATH_THESECELLS, cells, num_cells, &index); | ||||
|     k_find_cells(_PATH_THISCELL, cells, num_cells, &index); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund