Fixed smart_str_setl

This commit is contained in:
Xinchen Hui 2014-03-30 17:50:42 +08:00
parent fa2e7ba0cb
commit 6c16325034

View File

@ -185,8 +185,8 @@ static inline char *smart_str_print_unsigned(char *buf, long num) {
smart_str_appendl_ex((dest), ((smart_str *)(src))->s->val, \
((smart_str *)(src))->s->len, (what));
#define smart_str_setl(dest, src, nlen) do { \
smart_str_free((dest)); \
smart_str_appendl_ex((dest), (src), (nlen), 0); \
} while (0)