(glslang_util_cxx.cpp) Get rid of this strlcpy too

This commit is contained in:
twinaphex 2019-09-18 08:03:49 +02:00
parent 306d7f6f8a
commit 3fbeb0617b

View File

@ -68,9 +68,22 @@ static std::string build_stage_source(
{
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));
active = strcmp(expected, line) == 0;