Fixes for 64 bit cleanliness. The length arg to sysctl is a pointer to
size_t not int. Reviewed by: bp
This commit is contained in:
parent
26c4b7deaa
commit
db75019614
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118042
@ -30,6 +30,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: kiconv.c,v 1.3 2001/08/22 03:31:36 bp Exp $
|
* $Id: kiconv.c,v 1.3 2001/08/22 03:31:36 bp Exp $
|
||||||
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -48,7 +49,7 @@ kiconv_add_xlat_table(const char *to, const char *from, const u_char *table)
|
|||||||
{
|
{
|
||||||
struct iconv_add_in din;
|
struct iconv_add_in din;
|
||||||
struct iconv_add_out dout;
|
struct iconv_add_out dout;
|
||||||
int olen;
|
size_t olen;
|
||||||
|
|
||||||
if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN)
|
if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user