Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char src[BUFLEN];
- read(.., &src, BUFLEN);
- void copia((char*)src) {
- char dst[BUFLEN];
- memcpy(dest, src, strlen(src) + 1); // codice attuale che potrebbe andare in overflow se strlen(src)==BUFLEN;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement