Module Name: src
Committed By: stacktic
Date: Mon Jan 3 18:55:42 UTC 2011
Modified Files:
src/crypto/external/bsd/openssh/dist: sshconnect2.c
Log Message:
Fixed strvisx usage
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/crypto/external/bsd/openssh/dist/sshconnect2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/openssh/dist/sshconnect2.c
diff -u src/crypto/external/bsd/openssh/dist/sshconnect2.c:1.5 src/crypto/external/bsd/openssh/dist/sshconnect2.c:1.6
--- src/crypto/external/bsd/openssh/dist/sshconnect2.c:1.5 Sun Nov 21 18:29:49 2010
+++ src/crypto/external/bsd/openssh/dist/sshconnect2.c Mon Jan 3 18:55:41 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: sshconnect2.c,v 1.5 2010/11/21 18:29:49 adam Exp $ */
+/* $NetBSD: sshconnect2.c,v 1.6 2011/01/03 18:55:41 stacktic Exp $ */
/* $OpenBSD: sshconnect2.c,v 1.183 2010/04/26 22:28:24 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: sshconnect2.c,v 1.5 2010/11/21 18:29:49 adam Exp $");
+__RCSID("$NetBSD: sshconnect2.c,v 1.6 2011/01/03 18:55:41 stacktic Exp $");
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
@@ -458,7 +458,7 @@
if (len > 65536)
len = 65536;
msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
- strvisx(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);
+ strvisx(msg, raw, len, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);
fprintf(stderr, "%s", msg);
xfree(msg);
}