crash when dyninput returns NULL (error)
This commit is contained in:
parent
51cd993b61
commit
4ba0eab83e
@ -31,6 +31,11 @@ int main()
|
|||||||
|
|
||||||
fputs("Enter your message text: ", stdout);
|
fputs("Enter your message text: ", stdout);
|
||||||
char* msg = dyninput_str(INT64_MAX);
|
char* msg = dyninput_str(INT64_MAX);
|
||||||
|
if (!msg)
|
||||||
|
{
|
||||||
|
puts("ERROR: String input failed! Exiting...");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
fputs("Enter your key (shift value): ", stdout);
|
fputs("Enter your key (shift value): ", stdout);
|
||||||
fgets(buf, 4, stdin);
|
fgets(buf, 4, stdin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user