]> jfr.im git - solanum.git/commitdiff
ssld: fix a type warning pointed out by clang
authorWilliam Pitcock <redacted>
Sat, 12 Dec 2015 10:50:35 +0000 (04:50 -0600)
committerWilliam Pitcock <redacted>
Sat, 12 Dec 2015 10:50:35 +0000 (04:50 -0600)
ssld/ssld.c

index 75312c9612c0ed32a658bc289ae500d0f2f13f7c..5acb930c182ea6ed2ba87dd84f68b293ceb0bb20 100644 (file)
@@ -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);
 }