Replace strcpy_literal usage of trivial string setting

This commit is contained in:
twinaphex 2021-04-06 11:21:28 +02:00
parent e2b084b715
commit 9910dfbee2
2 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,9 @@ int database_info_build_query_enum(char *s, size_t len,
bool add_quotes = true;
bool add_glob = false;
strcpy_literal(s, "{'");
s[0] = '{';
s[1] = '\'';
s[2] = '\0';
switch (type)
{

View File

@ -9001,8 +9001,8 @@ static bool path_init_subsystem(struct rarch_state *p_rarch)
&info->roms[i].memory[j];
path[0] = ext[0] = '\0';
strcpy_literal(ext, ".");
ext[0] = '.';
ext[1] = '\0';
strlcat(ext, mem->extension, sizeof(ext));
strlcpy(savename,
p_rarch->subsystem_fullpaths->elems[i].data,