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.3.1-crypt.patch

16 lines
363 B

check crypt output (rhbz#815605)
11 years ago
diff --git a/misc.c b/misc.c
index 2022a06..235c82f 100644
11 years ago
--- a/misc.c
+++ b/misc.c
@@ -57,6 +57,8 @@ register const char *str;
11 years ago
{
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