diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-02-03 17:27:24 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-02-03 17:27:24 +0000 |
commit | 04f2fb62dee5105182a258e96fedadf22d3c3ff4 (patch) | |
tree | 6033d26ee4cc2299ef8a1fe6a15c02b87d04cb30 | |
parent | bce86396377744de5d9695323b1a6856a8c784b0 (diff) |
lib: Fix get_num_strips always returning 0
By copying the value correctly when copying the struct
-rw-r--r-- | libwacom/libwacom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c index 57e99ff..fce51b6 100644 --- a/libwacom/libwacom.c +++ b/libwacom/libwacom.c @@ -174,6 +174,7 @@ libwacom_copy(const WacomDevice *device) d->num_buttons = device->num_buttons; d->supported_styli = g_memdup (device->supported_styli, sizeof(int) * device->num_styli); d->num_styli = device->num_styli; + d->num_strips = device->num_strips; d->features = device->features; return d; |