5 ms·
Just replace strcpy(a,b) with strcpyn(a,b,INT_MAX) /joke
by ape4 6y ago
Just replace strcpy(a,b) with strcpyn(a,b,INT_MAX)
/joke
- fatnoah 6y agoI'm pretty sure I've seen similar logic in my life.
- beeforpork 6y agoBeen a while, eh? It should be strncpy(a,b,(size_t)-1)!
- guerrilla 6y agoSIZE_MAX does exist.