You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
screen/screen-4.2.1-crypt.patch

14 lines
329 B

diff --git a/misc.c b/misc.c
index 43e93a2..178fda9 100644
--- a/misc.c
+++ b/misc.c
@@ -56,6 +56,8 @@ register const char *str;
{
register char *cp;
+ if(str == NULL)
+ Panic(0, "SaveStr() received NULL - possibly failed crypt()");
if ((cp = malloc(strlen(str) + 1)) == NULL)
Panic(0, "%s", strnomem);
else