Skip to content

Commit 8f3979a

Browse files
committed
Minor re-arrange
1 parent e65a144 commit 8f3979a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

buffer_overflow/buffer_overflow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ void access_vault()
1010

1111
void get_password()
1212
{
13-
char input_buffer[16];
1413
puts("Enter the password to access Santa Ono's secret vault:");
15-
14+
15+
char input_buffer[16];
1616
fgets(input_buffer, 64, stdin); // Nothing can go wrong here right?
1717
}
1818

rop_chaining/rop_chaining.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ void access_vault(int code)
1616

1717
int get_password()
1818
{
19-
char input_buffer[16];
2019
puts("Enter the password to access Santa Ono's secret vault:");
2120

21+
char input_buffer[16];
2222
fgets(input_buffer, 64, stdin);
2323

2424
return atoi(input_buffer);

0 commit comments

Comments
 (0)