From: Brendan <bre...@us...> - 2006-09-29 17:59:26
|
Update of /cvsroot/sashimi/trans_proteomic_pipeline/src/Parsers/Parser In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9657/src/Parsers/Parser Modified Files: Parser.cxx Log Message: Start working on handling spaces in paths correctly. Index: Parser.cxx =================================================================== RCS file: /cvsroot/sashimi/trans_proteomic_pipeline/src/Parsers/Parser/Parser.cxx,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Parser.cxx 25 May 2006 22:25:41 -0000 1.5 --- Parser.cxx 29 Sep 2006 17:59:22 -0000 1.6 *************** *** 216,221 **** FILE *fp; char command[500]; ! strcpy(command, "tail -1 "); ! strcat(command, outfile); if ( (fp=popen(command, "r"))==NULL) --- 216,220 ---- FILE *fp; char command[500]; ! sprintf(command, "tail -1 \"%s\"", outfile); if ( (fp=popen(command, "r"))==NULL) |