ssld: fix a type warning pointed out by clang
This commit is contained in:
parent
6cd1aca7f1
commit
74ff144d33
1 changed files with 2 additions and 2 deletions
|
@ -664,7 +664,7 @@ static void
|
|||
ssl_send_cipher(conn_t *conn)
|
||||
{
|
||||
size_t len;
|
||||
char buf[512];
|
||||
uint8_t buf[512];
|
||||
char cstring[256];
|
||||
const char *p;
|
||||
if(!IsSSL(conn))
|
||||
|
@ -679,7 +679,7 @@ ssl_send_cipher(conn_t *conn)
|
|||
|
||||
buf[0] = 'C';
|
||||
uint32_to_buf(&buf[1], conn->id);
|
||||
strcpy(&buf[5], cstring);
|
||||
strcpy((char *) &buf[5], cstring);
|
||||
len = (strlen(cstring) + 1) + 5;
|
||||
mod_cmd_write_queue(conn->ctl, buf, len);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue