Revision 2917dce4 tests/cris/check_stat3.c
b/tests/cris/check_stat3.c | ||
---|---|---|
13 | 13 |
char path[1024] = "/"; |
14 | 14 |
struct stat buf; |
15 | 15 |
|
16 |
strcat (path, argv[0]);
|
|
16 |
strncat(path, argv[0], sizeof(path) - 2);
|
|
17 | 17 |
if (stat (".", &buf) != 0 |
18 | 18 |
|| !S_ISDIR (buf.st_mode)) |
19 | 19 |
abort (); |
Also available in: Unified diff