mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-10 09:22:04 +02:00
check crypt output for SaveStr()
This commit is contained in:
@@ -57,6 +57,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
|
||||
|
||||
Reference in New Issue
Block a user