aboutsummaryrefslogtreecommitdiffstats
path: root/examples/multi_process/simple_mp/mp_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multi_process/simple_mp/mp_commands.c')
-rw-r--r--examples/multi_process/simple_mp/mp_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multi_process/simple_mp/mp_commands.c b/examples/multi_process/simple_mp/mp_commands.c
index 8da244bb..cde3abd4 100644
--- a/examples/multi_process/simple_mp/mp_commands.c
+++ b/examples/multi_process/simple_mp/mp_commands.c
@@ -78,7 +78,7 @@ static void cmd_send_parsed(void *parsed_result,
if (rte_mempool_get(message_pool, &msg) < 0)
rte_panic("Failed to get message buffer\n");
- snprintf((char *)msg, string_size, "%s", res->message);
+ snprintf((char *)msg, STR_TOKEN_SIZE, "%s", res->message);
if (rte_ring_enqueue(send_ring, msg) < 0) {
printf("Failed to send message - message discarded\n");
rte_mempool_put(message_pool, msg);