projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4b898
)
strip all trailing whitespace in the spec file
author
root
<devnull@localhost>
Wed, 22 May 1996 17:38:46 +0000
(17:38 +0000)
committer
root
<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
patch
|
blob
|
history
diff --git
a/build/spec.c
b/build/spec.c
index
e662e61
..
05e16df
100644
(file)
--- a/
build/spec.c
+++ b/
build/spec.c
@@
-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;
}