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