You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by at...@apache.org on 2013/02/05 05:54:28 UTC
svn commit: r1442472 -
/hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc
Author: atm
Date: Tue Feb 5 04:54:28 2013
New Revision: 1442472
URL: http://svn.apache.org/viewvc?rev=1442472&view=rev
Log:
MAPREDUCE-4953. HadoopPipes misuses fprintf. Contributed by Andy Isaacson.
Modified:
hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc
Modified: hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc?rev=1442472&r1=1442471&r2=1442472&view=diff
==============================================================================
--- hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc (original)
+++ hadoop/common/branches/branch-2/hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc Tue Feb 5 04:54:28 2013
@@ -127,7 +127,7 @@ namespace HadoopPipes {
static const char lineSeparator = '\n';
void writeBuffer(const string& buffer) {
- fprintf(stream, quoteString(buffer, "\t\n").c_str());
+ fputs(quoteString(buffer, "\t\n").c_str(), stream);
}
public: