diff options
Diffstat (limited to 'test/iconv.c')
-rw-r--r-- | test/iconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/iconv.c b/test/iconv.c index cd0bfa3..f257782 100644 --- a/test/iconv.c +++ b/test/iconv.c @@ -28,7 +28,7 @@ int main(int argc, char **argv) assert(ucpath != NULL); - strncpy(aliases, ucpath, sizeof(aliases)); + strncpy(aliases, ucpath, sizeof(aliases) - 1); alen = strlen(aliases); #ifndef __riscos__ if (aliases[alen - 1] != '/') { |