From: Antonio Quartulli Date: Wed, 12 Jul 2017 12:30:02 +0800 Message-Id: <20170712043002.11083-1-a@...2181...> In-Reply-To: <20170712035835.6398-1-a@...2181...> References: <20170712035835.6398-1-a@...2181...> Subject: [Openvpn-devel] [PATCH 5/4 v2] ntlm: unwrap multiple function calls List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: Antonio Quartulli In order to improve code readability it is better to unwrap multiple function calls onto multiple lines. Signed-off-by: Antonio Quartulli --- - add missing ; - use my personal mail address src/openvpn/ntlm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openvpn/ntlm.c b/src/openvpn/ntlm.c index c0319287..65c1cbf5 100644 --- a/src/openvpn/ntlm.c +++ b/src/openvpn/ntlm.c @@ -276,7 +276,8 @@ ntlm_phase_3(const struct http_proxy_info *p, const char *phase_2, int tib_len; /* NTLMv2 hash */ - my_strupr(strcpy(userdomain, username)); + strcpy(userdomain, username); + my_strupr(userdomain); if (strlen(username) + strlen(domain) < sizeof(userdomain)) { strcat(userdomain, domain); -- 2.13.2