ssld: we use uint8_t for IPC buffers, not char

This commit is contained in:
William Pitcock 2016-02-10 21:03:09 -06:00
parent b7cca0143d
commit 1533b40304

View file

@ -832,13 +832,13 @@ change_connid(mod_ctl_t *ctl, mod_ctl_buf_t *ctlb)
lrb_assert(conn != NULL); lrb_assert(conn != NULL);
if(conn == NULL) if(conn == NULL)
{ {
char buf[256]; uint8_t buf[256];
int len; int len;
buf[0] = 'D'; buf[0] = 'D';
uint32_to_buf(&buf[1], newid); uint32_to_buf(&buf[1], newid);
sprintf(&buf[5], "connid %d does not exist", id); sprintf((char *) &buf[5], "connid %d does not exist", id);
len = (strlen(&buf[5]) + 1) + 5; len = (strlen((char *) &buf[5]) + 1) + 5;
mod_cmd_write_queue(ctl, buf, len); mod_cmd_write_queue(ctl, buf, len);
return; return;