Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void init_buff(char *buff)
- {
- int i;
- i = 0;
- while (i < BUFF)
- buff[i++] = 0;
- }
- ==24048== Invalid write of size 1
- ==24048== at 0x401AA8: init_buff (function_init.c:19)
- ==24048== by 0x400D51: history (history.c:92)
- ==24048== by 0x400E32: bonus (history.c:111)
- ==24048== by 0x401D6C: main (main.c:24)
- ==24048== Address 0x5845518 is 0 bytes after a block of size 8 alloc'd
- ==24048== at 0x4C277AB: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==24048== by 0x400BED: history (history.c:69)
- ==24048== by 0x400E32: bonus (history.c:111)
- ==24048== by 0x401D6C: main (main.c:24)
- ==24048==
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement