Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plan9/fcall: set Count when unmarshalling Rread #10

Closed
mbucc opened this issue Nov 28, 2015 · 1 comment
Closed

plan9/fcall: set Count when unmarshalling Rread #10

mbucc opened this issue Nov 28, 2015 · 1 comment

Comments

@mbucc
Copy link

mbucc commented Nov 28, 2015

308     case Rread:
309         n, b = gbit32(b)
310         if len(b) != int(n) {
311             panic(1)
312         }
313         f.Data = b
314         b = nil

After 313, add the line

            f.Count = uint32(len(b))
@rsc
Copy link
Contributor

rsc commented Apr 17, 2021

Count is not set because you can use len(f.Data).

@rsc rsc closed this as completed Apr 17, 2021
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

No branches or pull requests

2 participants