examples-code-check.c: Disable potential compile warning

Fixes snprintf() warning of writing into smaller buffer.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-06-12 13:16:21 +01:00
1 parent e386160474
commit 63d5248d88
1 file changed
+1 -1
+1 -1
View File
@@ -576,7 +576,7 @@ int main(int argc, char* argv[])
i, (int)(sizeof(name_list)/sizeof(name_list[0])));
continue;
}
snprintf(name_list[i], sizeof(name_list[i]), "%s", buffer);
memcpy(name_list[i], buffer, sizeof(name_list[i])-1);
name_cnt++;
}