diff options
-rw-r--r-- | sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.468 2016/05/02 10:26:04 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.469 2016/05/02 14:10:58 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1104,7 +1104,7 @@ recv_rexec_state(int fd, Buffer *conf) | |||
1104 | 1104 | ||
1105 | cp = buffer_get_string(&m, &len); | 1105 | cp = buffer_get_string(&m, &len); |
1106 | if (conf != NULL) | 1106 | if (conf != NULL) |
1107 | buffer_append(conf, cp, len + 1); | 1107 | buffer_append(conf, cp, len); |
1108 | free(cp); | 1108 | free(cp); |
1109 | 1109 | ||
1110 | if (buffer_get_int(&m)) { | 1110 | if (buffer_get_int(&m)) { |