]> git.pld-linux.org Git - packages/mosh.git/blame - mosh-gcc8.patch
- release 11 (by relup.sh)
[packages/mosh.git] / mosh-gcc8.patch
CommitLineData
d1ff338f
AG
1--- mosh-1.3.2/src/frontend/mosh-server.cc~ 2017-07-22 23:14:53.000000000 +0200
2+++ mosh-1.3.2/src/frontend/mosh-server.cc 2018-09-24 07:13:02.243766616 +0200
3@@ -764,8 +764,8 @@
4 throw NetworkException( std::string( "serve: getnameinfo: " ) + gai_strerror( errcode ), 0 );
5 }
6
7- char tmp[ 64 ];
8- snprintf( tmp, 64, "%s via mosh [%d]", host, getpid() );
9+ char tmp[ 64 + NI_MAXHOST ];
10+ snprintf( tmp, 64 + NI_MAXHOST, "%s via mosh [%d]", host, getpid() );
11 utempter_add_record( host_fd, tmp );
12
13 connected_utmp = true;
This page took 0.070813 seconds and 4 git commands to generate.