From e693c2fe8f3591d0a52319fc5c03c083bd6384df Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 4 Feb 2016 10:44:47 +0100 Subject: [PATCH] ntlm long string fix attempt --- ntlm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ntlm.c b/ntlm.c index 6d5ea9b..e98b859 100644 --- a/ntlm.c +++ b/ntlm.c @@ -1172,7 +1172,7 @@ static void dumpRaw(FILE * fp, unsigned char *buf, size_t len) { static char *unicodeToString(char *p, size_t len) { int i; - static char buf[1024]; + static char buf[4096]; assert(len + 1 < sizeof buf); @@ -1186,7 +1186,7 @@ static char *unicodeToString(char *p, size_t len) { } static unsigned char *strToUnicode(char *p) { - static unsigned char buf[1024]; + static unsigned char buf[4096]; size_t l = strlen(p); int i = 0; @@ -1201,7 +1201,7 @@ static unsigned char *strToUnicode(char *p) { } static unsigned char *toString(char *p, size_t len) { - static unsigned char buf[1024]; + static unsigned char buf[4096]; assert(len + 1 < sizeof buf);