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