Lines 163-171
Link Here
|
163 |
int size = 1; // terminating { 0 } element |
163 |
int size = 1; // terminating { 0 } element |
164 |
for (int i = 0; 0 != _format[i].name; ++i) |
164 |
for (int i = 0; 0 != _format[i].name; ++i) |
165 |
++size; |
165 |
++size; |
166 |
_fmt = new (const format *)[size]; |
166 |
// _fmt = new (const format *)[size]; |
167 |
// okay, so we may waste a few |
167 |
// okay, so we may waste a few |
168 |
|
168 |
typedef const format *t1; |
|
|
169 |
_fmt = new t1[size]; |
170 |
|
171 |
|
169 |
int cnt = 0; |
172 |
int cnt = 0; |
170 |
int len = 0; |
173 |
int len = 0; |
171 |
for (int i = 0; i < size - 1; ++i) |
174 |
for (int i = 0; i < size - 1; ++i) |