diff options
author | Jason Gerecke <jason.gerecke@wacom.com> | 2022-02-19 15:12:45 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-02-22 10:41:51 +1000 |
commit | 571fbced64a51259ea7825c737f1703a0eb6bdf5 (patch) | |
tree | eb9319e7baf82938fe34451351f5ccb00570460f | |
parent | a5a0b5bf0f855ac0a5501147de5147a520b8b9d2 (diff) | |
download | xf86-input-wacom-571fbced64a51259ea7825c737f1703a0eb6bdf5.tar.gz |
Correct buffer size passed to wcmAxisValue
Thankfully the incorrect `sizeof(data)` is less than the actual
`sizeof(value)`, so there's no chance of some kind of buffer
overflow in the existing code.
Fixes: e8015b67000b ("Revamp debug printing of axis data")
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
-rw-r--r-- | src/WacomInterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WacomInterface.h b/src/WacomInterface.h index 79a7e50..680fdd2 100644 --- a/src/WacomInterface.h +++ b/src/WacomInterface.h @@ -244,7 +244,7 @@ static inline void wcmAxisDump(const WacomAxisData *data, char *buf, size_t len) if ((mask & flag) == 0) continue; - wcmAxisValue(data, flag, value, sizeof(data)); + wcmAxisValue(data, flag, value, sizeof(value)); count += snprintf(buf + count, len - count, "%s%s: %s", prefix, name, value); assert(count < len); |