freebsd-ports/mail/mboxstats/files/patch-br.cpp
Cheng-Lung Sung 26b6fd675b - Update to 3.0
- buildable (and works) on amd64 [1]
Added file(s):
- files/patch-br.cpp: Workaround use of strndup

PR:		ports/113857
Submitted by:	Nils Vogels <nivo+kw+ports dot bfa274_AT_is-root dot com>
Reviewed by:	clsung [1]
2007-07-02 07:54:40 +00:00

19 lines
358 B
C++

--- br.cpp.orig Tue Jun 19 17:54:16 2007
+++ br.cpp Tue Jun 19 17:55:30 2007
@@ -160,6 +160,16 @@
return n_read;
}
+char *strndup(char *in, int size)
+{
+ char *out = (char *)malloc(size + 1);
+
+ memcpy(out, in, size);
+ out[size] = 0x00;
+
+ return out;
+}
+
char * buffered_reader::read_line(void)
{
char *out = NULL;