From b0cf064f819357feedc77d6d5eb0de49e122554a Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 16 Jun 2018 22:50:18 +0200 Subject: Added command injection example and secured examples --- examples/buffer-overflow/buffer-overflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/buffer-overflow/buffer-overflow.c') 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"); -- cgit v1.2.3