1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: Fix compilation with gcc-6
Author: Gert Wollny <gw.fossdev@gmail.com>
Forwarded: No
Debian-Bug: https://bugs.debian.org/811830
--- a/src/proftmb.cpp
+++ b/src/proftmb.cpp
@@ -163,14 +163,14 @@
if( *OutPretty ) FileName << OutPretty; else FileName << "/dev/null";
} else FileName<<OutPrefix<<"_proftmb_pretty.txt";
ofstream TS(FileName.str().c_str());
- if (!TS) { cerr<<"Couldn't open Output file "<<FileName<<": "<< strerror(errno) <<endl; return 1; }
+ if (!TS) { cerr<<"Couldn't open Output file "<<FileName.str()<<": "<< strerror(errno) <<endl; return 1; }
FileName.str("");
if( OutTab ) {
if( *OutTab ) FileName << OutTab; else FileName << "/dev/null";
} else FileName<<OutPrefix<<"_proftmb_tabular.txt";
ofstream TStab(FileName.str().c_str());
- if (!TStab) { cerr<<"Couldn't open Output file "<<FileName<<": "<< strerror(errno) <<endl; return 1; }
+ if (!TStab) { cerr<<"Couldn't open Output file "<<FileName.str()<<": "<< strerror(errno) <<endl; return 1; }
FileName.str("");
char Datfile[1000] = "/dev/null"; Datfile[9] = 0; Datfile[999] = 0;
|