Simplify rarch_main_data_msg_queue_push

This commit is contained in:
twinaphex 2015-03-15 06:44:01 +01:00
parent 27367a733b
commit f094a76c22

View File

@ -669,9 +669,7 @@ void rarch_main_data_msg_queue_push(unsigned type,
char new_msg[PATH_MAX_LENGTH]; char new_msg[PATH_MAX_LENGTH];
msg_queue_t *queue = NULL; msg_queue_t *queue = NULL;
strlcpy(new_msg, msg, sizeof(new_msg)); snprintf(new_msg, sizeof(new_msg), "%s|%s", msg, msg2);
strlcat(new_msg, "|", sizeof(new_msg));
strlcat(new_msg, msg2, sizeof(new_msg));
switch(type) switch(type)
{ {