Commit 21ce0f40 authored by Ziye Yang's avatar Ziye Yang Committed by Ben Walker
Browse files

examples/nvme: replace sprintf with snprintf



Change-Id: I08c594e26df9e1cdae67596e92db646c92701f85
Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
parent 01922c74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ hello_world(void)
		 *  0 on the namespace, and then later read it back into a separate buffer
		 *  to demonstrate the full I/O path.
		 */
		sprintf(sequence.buf, "Hello world!\n");
		snprintf(sequence.buf, 0x1000, "%s", "Hello world!\n");

		/*
		 * Write the data buffer to LBA 0 of this namespace.  "write_complete" and