aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2018-06-16 22:50:18 +0200
committermarcinzelent <zelent.marcin@gmail.com>2018-06-16 22:50:18 +0200
commitb0cf064f819357feedc77d6d5eb0de49e122554a (patch)
tree2ba0defb81576326dbc25736174100bfd43f677c /examples/buffer-overflow/buffer-overflow.c
parent7d93b9b60f0923b0f895d63b2d456b279a6ab774 (diff)
Added command injection example and secured examples
Diffstat (limited to 'examples/buffer-overflow/buffer-overflow.c')
-rw-r--r--examples/buffer-overflow/buffer-overflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/buffer-overflow/buffer-overflow.c b/examples/buffer-overflow/buffer-overflow.c
index 96f0ee8..4fcce8c 100644
--- a/examples/buffer-overflow/buffer-overflow.c
+++ b/examples/buffer-overflow/buffer-overflow.c
@@ -6,7 +6,7 @@ int main(void)
char buf[16];
int ok = 0;
- printf("Type admin password: \n");
+ printf("Type admin password: ");
gets(buf);
if (strcmp(buf, "pass123")) printf("\nWrong password!\n");