mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-12 02:12:21 +02:00
Potentially overflowing fix for 'home'
This commit is contained in:
@@ -789,6 +789,8 @@ int main(int argc, char **argv)
|
||||
} else {
|
||||
#ifndef SOCKET_DIR
|
||||
if (SocketDir == NULL) {
|
||||
if (strlen(home) > MAXPATHLEN - 8)
|
||||
Panic(0, "$HOME too long - sorry.");
|
||||
sprintf(SocketPath, "%s/.screen", home);
|
||||
SocketDir = SocketPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user