I understand the error now thank you, it expected a pointer but I gave it a char, or what was in that address.
I want to set the next place to a null so I use:
*(boot_buffer+bytes_used++) =...
Type: Posts; User: Hoang Bao Ngo
I understand the error now thank you, it expected a pointer but I gave it a char, or what was in that address.
I want to set the next place to a null so I use:
*(boot_buffer+bytes_used++) =...
found out that calloc is better than malloc, since I gotta write and pad where there are necessary, so instead of remember where to pad, just pad all at the beginning and then start overwriting data....
Yeah seems like I have to do that. *(buffer + bytes_used), here I come.
Thanks, gonna try this tomorrow
Need some reassurance
Not wondering about syntax or semantics btw.
Lets say I open a file and reading from it.
/*reading ten char from file and store it in buffer*/
char * buffer =...
I found the solution.
At first I thought that program headers are laying at different offset, not consecutive, but just found out that it was continuosly.
And by that we can just add the size of...
Hithe only problem I have is to know how to get access to the next entry in program header table
ex:
/*read from a file with elf files inside and saved it in buffer*/
Elf32_Phdr *list;...
Your're right, struct EDGE has only an int and NODE to have two integers, an ID number and cost, so NODE was twice the size of EDGE, no wonder I got invalid write size by 4 byte (integer -> 4 byte)....
There's the code under, but I'm getting an invalid read size of 4, and it seems because I forwarded the pointer a little far ahead... I think.
It's just a little part of my network code, but it's...