1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

src: Define MAX_BUF_SIZE globally and use it.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Joseph Southwell
2014-02-02 19:28:51 +01:00
committed by Andreas Schneider
parent eedecd0269
commit 6bbdaceaca
5 changed files with 17 additions and 5 deletions

View File

@@ -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;