Fix some compiler warnings.
This commit is contained in:
parent
33521eabd4
commit
7303b512b0
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ static bool send_proxyrequest(connection_t *c) {
|
|||
memcpy(s4req + 2, &c->address.in.sin_port, 2);
|
||||
memcpy(s4req + 4, &c->address.in.sin_addr, 4);
|
||||
if(proxyuser)
|
||||
strcpy(s4req + 8, proxyuser);
|
||||
memcpy(s4req + 8, proxyuser, strlen(proxyuser));
|
||||
s4req[sizeof s4req - 1] = 0;
|
||||
c->tcplen = 8;
|
||||
return send_meta(c, s4req, sizeof s4req);
|
||||
|
|
|
@ -1194,7 +1194,7 @@ static int cmd_config(int argc, char *argv[]) {
|
|||
|
||||
while(fgets(buf1, sizeof buf1, f)) {
|
||||
buf1[sizeof buf1 - 1] = 0;
|
||||
strcpy(buf2, buf1);
|
||||
strncpy(buf2, buf1, sizeof buf2);
|
||||
|
||||
// Parse line in a simple way
|
||||
char *bvalue;
|
||||
|
|
Loading…
Reference in a new issue