aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorJoseph Southwell <joseph@southwell.org>2014-02-02 19:28:51 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-02-02 22:19:46 +0100
commit6bbdaceaca06e3af4df5d4f265630ea651bc9044 (patch)
tree793e11158b92870703729d774ba3b469c22369d3 /src/misc.c
parenteedecd02694cfba2796c79496e1d6c9ebc7ea97a (diff)
downloadlibssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.gz
libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.xz
libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.zip
src: Define MAX_BUF_SIZE globally and use it.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 693189f2..6daf60ab 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -697,7 +697,6 @@ char *ssh_path_expand_tilde(const char *d) {
}
char *ssh_path_expand_escape(ssh_session session, const char *s) {
-#define MAX_BUF_SIZE 4096
char host[NI_MAXHOST];
char buf[MAX_BUF_SIZE];
char *r, *x = NULL;