summaryrefslogtreecommitdiff
path: root/test/GNU
diff options
context:
space:
mode:
Diffstat (limited to 'test/GNU')
-rw-r--r--test/GNU/table-from.c2
-rw-r--r--test/GNU/table-to.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/GNU/table-from.c b/test/GNU/table-from.c
index 56a0dab..92300d6 100644
--- a/test/GNU/table-from.c
+++ b/test/GNU/table-from.c
@@ -126,7 +126,7 @@ int main (int argc, char* argv[])
exit(1);
}
- strncpy(aliases, ucpath, sizeof(aliases));
+ strncpy(aliases, ucpath, sizeof(aliases) - 1);
alen = strlen(ucpath);
#ifndef __riscos__
if (aliases[alen - 1] != '/') {
diff --git a/test/GNU/table-to.c b/test/GNU/table-to.c
index 62c30a8..3246428 100644
--- a/test/GNU/table-to.c
+++ b/test/GNU/table-to.c
@@ -59,7 +59,7 @@ int main (int argc, char* argv[])
exit(1);
}
- strncpy(aliases, ucpath, sizeof(aliases));
+ strncpy(aliases, ucpath, sizeof(aliases) - 1);
alen = strlen(ucpath);
#ifndef __riscos__
if (aliases[alen - 1] != '/') {