--- qemu/tests/cris/check_stat3.c 2018/04/24 16:51:24 1.1.1.2 +++ qemu/tests/cris/check_stat3.c 2018/04/24 18:57:26 1.1.1.3 @@ -13,7 +13,7 @@ int main (int argc, char *argv[]) char path[1024] = "/"; struct stat buf; - strcat (path, argv[0]); + strncat(path, argv[0], sizeof(path) - 2); if (stat (".", &buf) != 0 || !S_ISDIR (buf.st_mode)) abort ();