mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
(glslang_util_cxx.cpp) Get rid of this strlcpy too
This commit is contained in:
parent
306d7f6f8a
commit
3fbeb0617b
@ -68,9 +68,22 @@ static std::string build_stage_source(
|
|||||||
{
|
{
|
||||||
char expected[128];
|
char expected[128];
|
||||||
|
|
||||||
expected[0] = '\0';
|
expected[0] = '#';
|
||||||
|
expected[1] = 'p';
|
||||||
|
expected[2] = 'r';
|
||||||
|
expected[3] = 'a';
|
||||||
|
expected[4] = 'g';
|
||||||
|
expected[5] = 'm';
|
||||||
|
expected[6] = 'a';
|
||||||
|
expected[7] = ' ';
|
||||||
|
expected[8] = 's';
|
||||||
|
expected[9] = 't';
|
||||||
|
expected[10] = 'a';
|
||||||
|
expected[11] = 'g';
|
||||||
|
expected[12] = 'e';
|
||||||
|
expected[13] = ' ';
|
||||||
|
expected[14] = '\0';
|
||||||
|
|
||||||
strlcpy(expected, "#pragma stage ", sizeof(expected));
|
|
||||||
strlcat(expected, stage, sizeof(expected));
|
strlcat(expected, stage, sizeof(expected));
|
||||||
|
|
||||||
active = strcmp(expected, line) == 0;
|
active = strcmp(expected, line) == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user