Add outsize parameter to en64

This commit is contained in:
Vladimir Dubrovin committed 2026-08-08 17:58:49 +03:00
1 parent 7eba73fc8f
commit eceb5a22df
7 files changed
+23 -17

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
if(user){
len += sprintf((char *)buf + len, "Proxy-Authorization: Basic ");
sprintf((char *)username, "%.128s:%.128s", user, pass?pass:(unsigned char *)"");
en64(username, buf+len, (int)strlen((char *)username));
if(!en64(username, buf+len, (int)strlen((char *)username), 2048 - len)) return 21;
len = (int)strlen((char *)buf);
len += sprintf((char *)buf + len, "\r\n");
}