diff --git a/examples/nvme/hello_world/hello_world.c b/examples/nvme/hello_world/hello_world.c index 81d04decb..66e83c450 100644 --- a/examples/nvme/hello_world/hello_world.c +++ b/examples/nvme/hello_world/hello_world.c @@ -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