From c9050b110457266488c3b51a38029138da2281aa Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Mon, 20 May 2019 17:28:25 +0100 Subject: Added custom pattern detector and extractor from buffer --- buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buf.c') diff --git a/buf.c b/buf.c index d52336b..2963201 100644 --- a/buf.c +++ b/buf.c @@ -284,13 +284,13 @@ Buf* Buf::copy() char *data=NULL; int data_size=0; - this->get(&data, &data_size); + this->get_ptr(&data, &data_size); ret->set(data, data_size); data=NULL; return ret; } -int Buf::get(char **val, int *size) +int Buf::get_ptr(char **val, int *size) { if (!val) { -- cgit v1.2.3