From fe8e6e1e59f52bac8c20572523955581eea024c4 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 25 Oct 2010 20:26:35 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5125 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/pair_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pair_table.cpp b/src/pair_table.cpp index 76305fdad5..74f01659d6 100644 --- a/src/pair_table.cpp +++ b/src/pair_table.cpp @@ -355,7 +355,7 @@ void PairTable::read_table(Table *tb, char *file, char *keyword) while (1) { if (fgets(line,MAXLINE,fp) == NULL) error->one("Did not find keyword in table file"); - if (strspn(line," \t\n") == strlen(line)) continue; // blank line + if (strspn(line," \t\n\r") == strlen(line)) continue; // blank line if (line[0] == '#') continue; // comment if (strstr(line,keyword) == line) break; // matching keyword fgets(line,MAXLINE,fp); // no match, skip section