The data field is a *pointer* to the buffer, not the actual buffer itself. Instead of smashing past the end of the struct, write through that pointer. Signed-off-by: Keith Packard <keithp@keithp.com> |
||
|---|---|---|
| .. | ||
| main.c | ||
The data field is a *pointer* to the buffer, not the actual buffer itself. Instead of smashing past the end of the struct, write through that pointer. Signed-off-by: Keith Packard <keithp@keithp.com> |
||
|---|---|---|
| .. | ||
| main.c | ||