From: Joey Schulze Date: Sun, 18 Nov 2001 20:12:18 +0000 (+0000) Subject: Changed ^M to \r since gcc for IA-64 didn't like it. X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=commitdiff_plain;h=63c59411f1cdd44fb4fe223fd5c465dd31b44d27 Changed ^M to \r since gcc for IA-64 didn't like it. --- diff --git a/dtaus.c b/dtaus.c index e8f935e..b556ffb 100644 --- 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] == ' ') + 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';