Index: testing/android/native_test/native_test_launcher.cc |
diff --git a/testing/android/native_test/native_test_launcher.cc b/testing/android/native_test/native_test_launcher.cc |
index 3b5ee8328036995724e78db3404578468ed62cad..aadf06af48f958c30f4eb3f051dd2c36afce3014 100644 |
--- a/testing/android/native_test/native_test_launcher.cc |
+++ b/testing/android/native_test/native_test_launcher.cc |
@@ -50,7 +50,7 @@ struct sigaction g_old_sa[NSIG]; |
// This function runs in a compromised context. It should not allocate memory. |
void SignalHandler(int sig, siginfo_t* info, void* reserved) { |
// Output the crash marker. |
- write(STDOUT_FILENO, kCrashedMarker, sizeof(kCrashedMarker)); |
+ write(STDOUT_FILENO, kCrashedMarker, sizeof(kCrashedMarker) - 1); |
g_old_sa[sig].sa_sigaction(sig, info, reserved); |
} |