1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Fix wrong assumption on iconv args on amd64.

Submitted by:	Sean McNeil <sean@mcneil.com>
This commit is contained in:
Pierre Beyssac 2004-12-08 19:32:45 +00:00
parent aa4fbca3ff
commit 573f9ae62c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123482
2 changed files with 22 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= dvdauthor PORTNAME= dvdauthor
PORTVERSION= 0.6.10 PORTVERSION= 0.6.10
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= multimedia CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}

View File

@ -0,0 +1,21 @@
--- src/readxml.c.orig Fri Mar 12 23:57:39 2004
+++ src/readxml.c Sun Dec 5 20:19:28 2004
@@ -221,13 +221,13 @@
char *utf8tolocal(const char *in)
{
iconv_t c=get_conv();
- int inlen=strlen(in);
- int outlen=inlen*5;
+ size_t inlen=strlen(in);
+ size_t outlen=inlen*5;
char *r=malloc(outlen+1);
char *out=r;
- int v;
+ size_t v;
- v=iconv(c,ICONV_CAST &in,&inlen,&out,&outlen);
+ v=iconv(c,&in,&inlen,&out,&outlen);
if(v==-1) {
fprintf(stderr,"ERR: Cannot convert UTF8 string '%s': %s\n",in,strerror(errno));
exit(1);