From bfe049577070248b2fed1eb50d24e34a58c71943 Mon Sep 17 00:00:00 2001 From: dsuclassprojects Date: Wed, 2 Dec 2020 19:48:34 -0600 Subject: [PATCH 1/2] the change I made --- buggy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buggy.c b/buggy.c index 033b3e4..d89594a 100644 --- a/buggy.c +++ b/buggy.c @@ -5,13 +5,13 @@ void main() { - char password[80); + char password[80]; - print("Create a password: "]: + print("Create a password: "); scanf("%s", password); - integer passwordlength; + int passwordlength; passwordlength = strlen(password); - printf("Your password is %s and %i characters long', password, passwordlength) + printf("Your password is %s and %i characters long, password, passwordlength); } From afd8a7197819c8273365f438ab0377c5c06563b0 Mon Sep 17 00:00:00 2001 From: dsuclassprojects Date: Wed, 2 Dec 2020 19:52:51 -0600 Subject: [PATCH 2/2] the change I made --- buggy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buggy.c b/buggy.c index d89594a..50a9b1a 100644 --- a/buggy.c +++ b/buggy.c @@ -12,6 +12,6 @@ void main() int passwordlength; passwordlength = strlen(password); - printf("Your password is %s and %i characters long, password, passwordlength); + printf("Your password is %s and %i characters long", password, passwordlength); }