mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
6795d530d4
- Fix installation while I'm here PR: ports/114327 (based on) Submitted by: Bartek Rutkowski <r@robakdesign.com> (maintainer) Obtained from: jGGtrans SVN [1] Security: http://jggtrans.jajcus.net/trac/changeset/694
12 lines
367 B
C
12 lines
367 B
C
--- ./src/encoding.c.orig 2007-07-20 13:49:39.000000000 +0400
|
|
+++ ./src/encoding.c 2007-07-20 13:50:00.000000000 +0400
|
|
@@ -97,7 +97,7 @@
|
|
int i;
|
|
|
|
if (str==NULL) return NULL;
|
|
- if (buf_len<(strlen(str)+1)){
|
|
+ if (buf_len<(strlen(str)*2+1)){
|
|
buf_len=strlen(str)*2+1; /* this should always be enough */
|
|
buf=(char *)g_realloc(buf,buf_len);
|
|
assert(buf!=NULL);
|