diff options
Diffstat (limited to 'buf.c')
-rw-r--r-- | buf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |