3 ms·
That still has poor behavior if newBuf is much larger than oldBuf.
by a_t48 10y ago
That still has poor behavior if newBuf is much larger than oldBuf.
- monochromatic 10y agoIt leaves the small problem and fixes the big problem.
- ktRolster 10y agoWhat poor behavior? Presumably oldBuf is null-terminated, so there will be no buffer overflow (if your strings aren't null-terminated, you have other problems)