Skip to content

Reading WatchCommand got error#2599

Open
ysf002 wants to merge 1 commit into
haiwen:masterfrom
ysf002:patch-1
Open

Reading WatchCommand got error#2599
ysf002 wants to merge 1 commit into
haiwen:masterfrom
ysf002:patch-1

Conversation

@ysf002
Copy link
Copy Markdown

@ysf002 ysf002 commented Aug 23, 2022

WatchCommand is sent as bytes stream, so is read also as bytes steam. So (void* p = &priv->cmd + priv->cmd_bytes_read ) is wrong, it should be char p = (char)(&priv->cmd) + priv->cmd_bytes_read.

WatchCommand is sent as bytes stream, so is read also as bytes steam. So (void* p = &priv->cmd +  priv->cmd_bytes_read ) is wrong, it should be char *p = (char*)(&priv->cmd) + priv->cmd_bytes_read.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant