strip all trailing whitespace in the spec file
authorroot <devnull@localhost>
Wed, 22 May 1996 17:38:46 +0000 (17:38 +0000)
committerroot <devnull@localhost>
Wed, 22 May 1996 17:38:46 +0000 (17:38 +0000)
of course, this means you can't have files with a space at the end

CVS patchset: 581
CVS date: 1996/05/22 17:38:46

build/spec.c

index e662e61..05e16df 100644 (file)
@@ -584,8 +584,8 @@ static int read_line(FILE *f, char *line)
     } while (! (gotline && read_level->reading));
     
     r = line + (strlen(line)) - 1;
-    if (*r == '\n') {
-        *r = '\0';
+    while (isspace(*r)) {
+        *(r--) = '\0';
     }
     return 1;
 }