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

> strcpy ... BANNED

But they cannot ban while (* p++ = * q++); now can they.



It's not meant to be a substitute for humans reviewing patches. It's just meant to catch things new contributors are likely to try to use, and give them feedback on it before they send the patch to the mailing list.


Truly curious as I don't code in C, or any other low level language. What is the problem with it? That there might not be enough memory allocated at *q?


Not enough memory at *p. The loop performs the exact same function that strcpy does, and some people just write it out by hand.


It doesn't stop until *p is \0, so yes




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: