(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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user