diff options
Diffstat (limited to 'test/GNU/table-to.c')
-rw-r--r-- | test/GNU/table-to.c | 2 |
1 files changed, 1 insertions, 1 deletions
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] != '/') { |