freebsd-ports/mail/xc-mail/files/patch-src_stringTokenizer.cxx
Renato Botelho 6a4566b7ae - Unbroken on FreeBSD > 502014
PR:		ports/85122
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br>
Approved by:	maintainer timeout (18 days)
2005-09-06 18:48:58 +00:00

20 lines
407 B
C++

--- src/stringTokenizer.cxx.orig Wed Aug 17 11:05:22 2005
+++ src/stringTokenizer.cxx Wed Aug 17 13:35:24 2005
@@ -455,7 +455,7 @@
{
chs+=strlen(get(i)->tokenize(delim2?delim2:delim,ign_bslash))+l;
}
- if (!(return_buf=(char*)malloc(chs)))
+ if (chs == 0 || !(return_buf=(char*)malloc(chs)))
{
return (char*)"";
}
@@ -478,7 +478,7 @@
}
}
}
- *d=0;
+ //*d=0;
return return_buf;
}