projects
/
infodrom
/
dtaus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5c04191
)
Changed ^M to \r since gcc for IA-64 didn't like it.
author
Joey Schulze
<joey@infodrom.org>
Sun, 18 Nov 2001 20:12:18 +0000
(20:12 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 18 Nov 2001 20:12:18 +0000
(20:12 +0000)
dtaus.c
patch
|
blob
|
history
diff --git
a/dtaus.c
b/dtaus.c
index
e8f935e
..
b556ffb
100644
(file)
--- a/
dtaus.c
+++ b/
dtaus.c
@@
-452,7
+452,7
@@
size_t control_nextline (void **buf, int len, FILE *f)
while (tmp[strlen(tmp)-1] != '\n' && (cp = fgets(tmp, 100, f)));
} else
line[strlen(line)-1] = '\0';
- if (line[strlen(line)-1] == '
\r
')
+ if (line[strlen(line)-1] == '
\r
')
line[strlen(line)-1] = '\0';
for (i=strlen(line);(line[i-1] == ' '||line[i-1] == '\t')&&i>0; i--)
line[i-1] = '\0';