From d310aa25b4539e221181fa515b8b1df5c943bbba Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 6 Mar 2022 15:21:01 +0100 Subject: [PATCH] fixed encryptText function parameters & renamed 'from' to 'text' --- include/encrypter.h | 2 +- src/encrypter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/encrypter.h b/include/encrypter.h index 57df388..338632d 100644 --- a/include/encrypter.h +++ b/include/encrypter.h @@ -1,6 +1,6 @@ #ifndef WHY2_ENCRYPTER_H #define WHY2_ENCRYPTER_H -char *encryptText(char from[]); //TEXT from WILL BE ENCRYPTED WITH RANDOM PASSWORD (WHICH WILL BE PRINTED OUT) AND RETURNED +char *encryptText(char *text); //TEXT from WILL BE ENCRYPTED WITH RANDOM PASSWORD (WHICH WILL BE PRINTED OUT) AND RETURNED #endif \ No newline at end of file diff --git a/src/encrypter.c b/src/encrypter.c index c0c473d..2e8cf6b 100644 --- a/src/encrypter.c +++ b/src/encrypter.c @@ -5,7 +5,7 @@ #define KEY_LENGTH 50 char* -encryptText(char *from) +encryptText(char *text) { srand(time(0)); //TRY TO MAKE RANDOM GENERATION REALLY "RANDOM"