From d4f34bffc3baee5b658bc9a7bf60f24049d1764f Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 4 Jul 1999 16:18:55 +0000 Subject: [PATCH] (expand_cell_name): terminate on #. From Miroslav Ruda git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6412 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/afsutil/afslog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appl/afsutil/afslog.c b/appl/afsutil/afslog.c index 8606cc212..13903fc09 100644 --- a/appl/afsutil/afslog.c +++ b/appl/afsutil/afslog.c @@ -35,6 +35,7 @@ #include RCSID("$Id$"); #endif +#include #include #include #include @@ -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);