Fix order of arguments to fputs

This time actually tested on Linux, where the test is not XFAILed.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@263294 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/asan/TestCases/printf-4.c b/test/asan/TestCases/printf-4.c
index 8a9545a..5a883fe 100644
--- a/test/asan/TestCases/printf-4.c
+++ b/test/asan/TestCases/printf-4.c
@@ -12,10 +12,10 @@
   volatile float f = 1.239;
   volatile char s[] = "34";
   volatile char buf[2];
-  fputs(stderr, "before sprintf");
+  fputs("before sprintf\n", stderr);
   sprintf((char *)buf, "%c %d %.3f %s\n", c, x, f, s);
-  fputs(stderr, "after sprintf");
-  fputs(stderr, (const char *)buf);
+  fputs("after sprintf", stderr);
+  fputs((const char *)buf, stderr);
   return 0;
   // Check that size of output buffer is sanitized.
   // CHECK-ON: before sprintf