syscalls/mprotect03: Make use of SAFE_WRITE().

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/testcases/kernel/syscalls/mprotect/mprotect03.c b/testcases/kernel/syscalls/mprotect/mprotect03.c
index 81a3296..c5898d5 100644
--- a/testcases/kernel/syscalls/mprotect/mprotect03.c
+++ b/testcases/kernel/syscalls/mprotect/mprotect03.c
@@ -47,6 +47,8 @@
 #include "test.h"
 #include "usctest.h"
 
+#include "safe_macros.h"
+
 #ifndef PAGESIZE
 #define PAGESIZE 4096
 #endif
@@ -80,7 +82,7 @@
 		if ((fd = open(file1, O_RDWR | O_CREAT, 0777)) < 0)
 			tst_brkm(TBROK, cleanup, "open failed");
 
-		write(fd, buf, strlen(buf));
+		SAFE_WRITE(cleanup, 1, fd, buf, strlen(buf));
 
 		/*
 		 * mmap the PAGESIZE bytes as read only.