summaryrefslogtreecommitdiffstats
path: root/contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2024-12-06 02:25:02 +0300
committerrobot-piglet <[email protected]>2024-12-06 02:36:54 +0300
commita3f34f7ae0f6a0859b79c398b6bddf55071b4171 (patch)
treef1de4ef4fee0f6a85c83d79fdf666cdadac75259 /contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp
parent791c95291cdeb78d59b058c8575f99cef4a94c86 (diff)
Intermediate changes
commit_hash:06212cb2bd676fc129fca8d6996e5c769e5bb047
Diffstat (limited to 'contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp')
-rw-r--r--contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp b/contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp
index 0a58c5377b3..54cc4ee54be 100644
--- a/contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp
+++ b/contrib/libs/libfuzzer/lib/fuzzer/FuzzerIO.cpp
@@ -65,7 +65,7 @@ std::string FileToString(const std::string &Path) {
}
void CopyFileToErr(const std::string &Path) {
- Printf("%s", FileToString(Path).c_str());
+ Puts(FileToString(Path).c_str());
}
void WriteToFile(const Unit &U, const std::string &Path) {
@@ -151,6 +151,11 @@ void CloseStdout() {
DiscardOutput(1);
}
+void Puts(const char *Str) {
+ fputs(Str, OutputFile);
+ fflush(OutputFile);
+}
+
void Printf(const char *Fmt, ...) {
va_list ap;
va_start(ap, Fmt);