Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. void init_buff(char *buff)
  2. {
  3. int i;
  4.  
  5. i = 0;
  6. while (i < BUFF)
  7. buff[i++] = 0;
  8. }
  9. ==24048== Invalid write of size 1
  10. ==24048== at 0x401AA8: init_buff (function_init.c:19)
  11. ==24048== by 0x400D51: history (history.c:92)
  12. ==24048== by 0x400E32: bonus (history.c:111)
  13. ==24048== by 0x401D6C: main (main.c:24)
  14. ==24048== Address 0x5845518 is 0 bytes after a block of size 8 alloc'd
  15. ==24048== at 0x4C277AB: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
  16. ==24048== by 0x400BED: history (history.c:69)
  17. ==24048== by 0x400E32: bonus (history.c:111)
  18. ==24048== by 0x401D6C: main (main.c:24)
  19. ==24048==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement