Advertisement
ioggstream

Untitled

Nov 27th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. char src[BUFLEN];
  2.  
  3. read(.., &src, BUFLEN);
  4. void copia((char*)src) {
  5. char dst[BUFLEN];
  6. memcpy(dest, src, strlen(src) + 1); // codice attuale che potrebbe andare in overflow se strlen(src)==BUFLEN;
  7.  
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement