[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small bug in cxxmultipleconstraints.c
--- cxxmultipleconstraints.c.old 2005-06-14 15:23:52.000000000 +0300
+++ 2005-06-14 15:24:44.000000000 +0300
@@ -567,7 +567,7 @@
fprintf(src, "%s::operator =(const %s &that)\n",
className, className);
fprintf(src, "{\n");
fprintf(src, " m_len = that.m_len;\n");
- fprintf(src, " delete m_bytes;\n");
+ fprintf(src, " delete[] m_bytes;\n");
fprintf(src, " m_bytes = new unsigned
char[m_len];\n");
fprintf(src, " memcpy(m_bytes, that.m_bytes,
m_len);\n");
fprintf(src, " return *this;\n}\n\n");