I am currently reading “Hacking the Art of Exploitation,” and there is an example that I seem to be unable to fix. Trying to compile the results with an error:
./addressof.c: In function 'main': ./addressof.c:8:4: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'int *' [-Wformat]
I understand where the error is, I just don't know how to fix it.
source share