From a3e61c95d9af9ff8116f0f492688486278f0ebc9 Mon Sep 17 00:00:00 2001 From: hunwade Date: Mon, 16 Nov 2020 00:55:03 -0600 Subject: [PATCH] made corrections, are listed in comments. --- buggy.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buggy.c b/buggy.c index 033b3e4..e6088bd 100644 --- a/buggy.c +++ b/buggy.c @@ -5,13 +5,13 @@ void main() { - char password[80); + char password[80]; //fixed array bracket - print("Create a password: "]: - scanf("%s", password); + print("Create a password: "); //fixed parenthesis / semicolon + scanf("%s", &password); //added ampersand - integer passwordlength; + int passwordlength; //changed from integer to int passwordlength = strlen(password); - printf("Your password is %s and %i characters long', password, passwordlength) + printf("Your password is %s and is %i characters long", password, passwordlength); //quotation and semicolon. }