diff --git a/src/caesarcrypt.c b/src/caesarcrypt.c index 5895192..d15c165 100644 --- a/src/caesarcrypt.c +++ b/src/caesarcrypt.c @@ -31,6 +31,11 @@ int main() fputs("Enter your message text: ", stdout); char* msg = dyninput_str(INT64_MAX); + if (!msg) + { + puts("ERROR: String input failed! Exiting..."); + return -1; + } fputs("Enter your key (shift value): ", stdout); fgets(buf, 4, stdin);