Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, the system I ran into would've been pre-c++11.

Only saw it trying to debug a heap issue and I was surprised because I thought surely it's a null terminated string already right? They also checked the heap allocation size, so it would only reallocate if the length of string data % 8 was zero.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: