(expand_cell_name): repair more

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6416 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-04 23:50:39 +00:00
parent 9a2618ea2c
commit 5f7dbf549a

View File

@@ -80,17 +80,17 @@ expand_cell_name(const char *cell)
return cell;
while (fgets (buf, sizeof(buf), f) != NULL) {
if(buf[0] == '>'){
for(p=buf; *p && !isspace(*p) && *p != '#'; p++)
for(p=buf; *p && !isspace((unsigned char)*p) && *p != '#'; p++)
;
*p = '\0';
if(strstr(buf, cell)){
fclose(F);
fclose(f);
return buf + 1;
}
}
buf[0] = 0;
}
fclose(F);
fclose(f);
return cell;
}