mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Fix wrong assumption on iconv args on amd64.
Submitted by: Sean McNeil <sean@mcneil.com>
This commit is contained in:
parent
aa4fbca3ff
commit
573f9ae62c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123482
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= dvdauthor
|
||||
PORTVERSION= 0.6.10
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
21
multimedia/dvdauthor/files/patch-readxml.c
Normal file
21
multimedia/dvdauthor/files/patch-readxml.c
Normal 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);
|
||||
|
Loading…
Reference in New Issue
Block a user