Jelajahi Sumber

MAPREDUCE-4953. HadoopPipes misuses fprintf. (Andy Isaacson via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1442609 13f79535-47bb-0310-9956-ffa450edef68
Thomas Graves 12 tahun lalu
induk
melakukan
eb10cb8741

+ 2 - 0
hadoop-mapreduce-project/CHANGES.txt

@@ -42,6 +42,8 @@ Release 0.23.7 - UNRELEASED
     MAPREDUCE-4969. TestKeyValueTextInputFormat test fails with Open JDK 7.
     MAPREDUCE-4969. TestKeyValueTextInputFormat test fails with Open JDK 7.
     (Arpit Agarwal via tgraves)
     (Arpit Agarwal via tgraves)
 
 
+    MAPREDUCE-4953. HadoopPipes misuses fprintf. (Andy Isaacson via tgraves)
+
 Release 0.23.6 - UNRELEASED
 Release 0.23.6 - UNRELEASED
 
 
   INCOMPATIBLE CHANGES
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-tools/hadoop-pipes/src/main/native/pipes/impl/HadoopPipes.cc

@@ -126,7 +126,7 @@ namespace HadoopPipes {
     static const char lineSeparator = '\n';
     static const char lineSeparator = '\n';
 
 
     void writeBuffer(const string& buffer) {
     void writeBuffer(const string& buffer) {
-      fprintf(stream, quoteString(buffer, "\t\n").c_str());
+      fputs(quoteString(buffer, "\t\n").c_str(), stream);
     }
     }
 
 
   public:
   public: