summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-08-02 16:16:27 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-08-02 16:18:24 +0200
commitb2f18aeeb8aee0eb62d6ce430dd0c848ccc2bc63 (patch)
treeda017d5f512d9159b3c55e894d14749da748964a
parent4e87865c0152a98b899272dbe7cf3a459e04b351 (diff)
downloadgnutls-tmp-cli-buffer-term.tar.gz
gnutls-cli: corrected input buffer null-terminationtmp-cli-buffer-term
This was a regression in the previous cleanup at f138ff85df69976badce44a5c46157cce091020f included in 3.6.3. Resolves #534 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--src/cli.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 21be015dc8..42d0277369 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1273,7 +1273,6 @@ int main(int argc, char **argv)
}
continue;
}
- bytes=strlen(buffer);
buffer[bytes] = 0;
if (crlf != 0) {