changeset 3924:9f18722fafe9

tail_space infinite loop fix by jeon_goon@lycos.co.kr
author arpi
date Tue, 01 Jan 2002 01:11:31 +0000
parents 3fd9b781a9d2
children 74fa7c82a66c
files subreader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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';