(expand_cell_name): terminate on #. From Miroslav Ruda

<ruda@ics.muni.cz>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6412 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-04 16:18:55 +00:00
parent 849381ffe0
commit d4f34bffc3

View File

@@ -35,6 +35,7 @@
#include <config.h>
RCSID("$Id$");
#endif
#include <ctype.h>
#include <krb5.h>
#include <kafs.h>
#include <roken.h>
@@ -80,7 +81,8 @@ expand_cell_name(const char *cell)
do{
fgets(buf, 128, F);
if(buf[0] == '>'){
for(p=buf; *p && *p != ' ' && *p != '\t'; p++);
for(p=buf; *p && !isspace(*p) && *p != '#'; p++)
;
*p=0;
if(strstr(buf, cell)){
fclose(F);