Skip to content

Commit bbefd31

Browse files
committed
print &fp
1 parent 0221bef commit bbefd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file_struct/baby-file-struct.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main(int argc, char **argv) {
2121
printf("shellcode: %p\n", shellcode);
2222
printf("shellcode2: %p\n", shellcode2);
2323
printf("challenge.buf: %p\n", challenge.buf);
24-
printf("challenge.fp: %p\n", challenge.fp);
24+
printf("challenge.fp: %p\n", &challenge.fp);
2525

2626
// open /etc/passwd
2727
challenge.fp = fopen("/etc/passwd", "r");

0 commit comments

Comments
 (0)