# HG changeset patch # User arpi # Date 1009847491 0 # Node ID 9f18722fafe98017d9fe789657def2ee22a96b5e # Parent 3fd9b781a9d2dd2476e4440eeb11ca14af6062ad tail_space infinite loop fix by jeon_goon@lycos.co.kr diff -r 3fd9b781a9d2 -r 9f18722fafe9 subreader.c --- a/subreader.c Mon Dec 31 17:22:41 2001 +0000 +++ b/subreader.c Tue Jan 01 01:11:31 2002 +0000 @@ -46,7 +46,7 @@ /* Remove leading and trailing space */ static void trail_space(char *s) { int i = 0; - while (isspace(*s)) ++i; + while (isspace(s[i])) ++i; if (i) strcpy(s, s + i); i = strlen(s) - 1; while (i > 0 && isspace(s[i])) s[i--] = '\0';