Commit 3439032
committed
fix(mouse): fix panic
Before the read() function panicked when a buffer with a size >
size_of<Packet>() was provided. This is now fixed and rather returns an
error only when the buffer is too small.
Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>1 parent 045e378 commit 3439032
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
147 | | - | |
148 | | - | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
164 | | - | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
0 commit comments