aboutsummaryrefslogtreecommitdiff
path: root/tests/cris/check_stat3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cris/check_stat3.c')
-rw-r--r--tests/cris/check_stat3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cris/check_stat3.c b/tests/cris/check_stat3.c
index 3b5b217a1c..36a9d5d274 100644
--- a/tests/cris/check_stat3.c
+++ b/tests/cris/check_stat3.c
@@ -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 ();