diff options
| author | R. Imura <imura@FreeBSD.org> | 2005-08-24 12:38:26 +0000 |
|---|---|---|
| committer | R. Imura <imura@FreeBSD.org> | 2005-08-24 12:38:26 +0000 |
| commit | f373a82454a8331f0290f3138fa98a12a09de546 (patch) | |
| tree | 82f3218f6e319b639049eac4448ce42471530736 /lib/libkiconv | |
| parent | 2738229eb8e75c7a89ff0ef9b0ea3a83e7696eee (diff) | |
Notes
Diffstat (limited to 'lib/libkiconv')
| -rw-r--r-- | lib/libkiconv/xlat16_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkiconv/xlat16_sysctl.c b/lib/libkiconv/xlat16_sysctl.c index 5078c28d16f6..28420d9d3d6b 100644 --- a/lib/libkiconv/xlat16_sysctl.c +++ b/lib/libkiconv/xlat16_sysctl.c @@ -54,7 +54,7 @@ kiconv_add_xlat16_table(const char *to, const char *from, const void *data, int struct iconv_add_out dout; size_t olen; - if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN) + if (strlen(from) >= ICONV_CSNMAXLEN || strlen(to) >= ICONV_CSNMAXLEN) return (EINVAL); din.ia_version = ICONV_ADD_VER; strcpy(din.ia_converter, "xlat16"); |
