1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/mail/mboxstats/files/patch-br.cpp
Dmitry Marakasov 0485d1f2dd - Add LICENSE
- Switch to USES=tar
- Regenerate patches
2016-12-01 09:00:42 +00:00

20 lines
373 B
C++

--- br.cpp.orig 2008-12-22 06:59:59 UTC
+++ br.cpp
@@ -160,6 +160,16 @@ int buffered_reader::read_into_buffer(vo
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;