From f094a76c224f766cbfb4f1e0f22b2726c4bb391c Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Sun, 15 Mar 2015 06:44:01 +0100 Subject: [PATCH] Simplify rarch_main_data_msg_queue_push --- runloop_data.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/runloop_data.c b/runloop_data.c index 62ee91d4c5..4dc5ee519a 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -669,9 +669,7 @@ void rarch_main_data_msg_queue_push(unsigned type, char new_msg[PATH_MAX_LENGTH]; msg_queue_t *queue = NULL; - strlcpy(new_msg, msg, sizeof(new_msg)); - strlcat(new_msg, "|", sizeof(new_msg)); - strlcat(new_msg, msg2, sizeof(new_msg)); + snprintf(new_msg, sizeof(new_msg), "%s|%s", msg, msg2); switch(type) {