diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2023-12-18 20:07:55 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2023-12-18 20:07:55 +0000 |
commit | 51deb6711a845e8797f3818d4d453bb29ac1a951 (patch) | |
tree | e4bc00e2e20784c01fcad5858582fc2b5d511863 /src | |
parent | 26fef05c3f3761030c9f38018cd26ccccc6f6aa6 (diff) | |
download | iconv-51deb6711a845e8797f3818d4d453bb29ac1a951.tar.gz iconv-51deb6711a845e8797f3818d4d453bb29ac1a951.tar.bz2 |
Fix strncpy buffer lengths
Diffstat (limited to 'src')
-rw-r--r-- | src/eightbit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eightbit.c b/src/eightbit.c index f201f31..8dfdb75 100644 --- a/src/eightbit.c +++ b/src/eightbit.c @@ -321,7 +321,7 @@ const char *get_table_path(const char *table) if (ucpath == NULL) return NULL; - strncpy(path, ucpath, sizeof(path)); + strncpy(path, ucpath, sizeof(path) - 1); plen = strlen(ucpath); #ifndef __riscos__ if (path[plen - 1] != '/') { |