summaryrefslogtreecommitdiff
path: root/buf.c
diff options
context:
space:
mode:
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)
{