diff mbox

[06/13] opensm/osm_torus.c: Also parse DOS line endings in torus-2QoS.conf.

Message ID 1289599882-15165-7-git-send-email-jaschut@sandia.gov (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jim Schutt Nov. 12, 2010, 10:11 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_torus.c b/opensm/opensm/osm_torus.c
index 784955d..804334f 100644
--- a/opensm/opensm/osm_torus.c
+++ b/opensm/opensm/osm_torus.c
@@ -980,7 +980,7 @@  bool parse_config(const char *fn, struct fabric *f, struct torus *t)
 	FILE *fp;
 	char *keyword;
 	char *line_buf = NULL;
-	const char *parse_sep = " \n\t";
+	const char *parse_sep = " \n\t\015";
 	size_t line_buf_sz = 0;
 	size_t line_cntr = 0;
 	ssize_t llen;