summaryrefslogtreecommitdiff
path: root/buf.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-05-20 17:28:25 +0100
committerFreeArtMan <dos21h@gmail.com>2019-05-20 17:28:25 +0100
commitc9050b110457266488c3b51a38029138da2281aa (patch)
treecc6bc47c7fc27f176a5d97c7dd5b9a835015658c /buf.c
parent2e06ffc51227fb9d613f6e068ffe04e0c4a23cb9 (diff)
downloadlibbuf-master.tar.gz
libbuf-master.zip
Added custom pattern detector and extractor from bufferHEADmaster
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c4
1 files changed, 2 insertions, 2 deletions
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)
{