diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 45e0a06bc2..b913e75100 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -74,7 +74,7 @@ public: \ classname& operator=(const chartype *str) \ { \ free(m_str); \ - m_str = str ? strdup(str) : NULL; \ + m_str = str ? strdupfunc(str) : NULL; \ return *this; \ } \ \