[gnome-settings-daemon] wacom: Simplify loop condition
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Simplify loop condition
- Date: Sun, 4 Mar 2012 14:46:08 +0000 (UTC)
commit e0dfc990ccccd5b05e267281e6d32742643f0f51
Author: Bastien Nocera <hadess hadess net>
Date: Sun Mar 4 14:15:25 2012 +0000
wacom: Simplify loop condition
The map isn't fixed-size anymore.
plugins/wacom/gsd-wacom-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index a52dfe6..134ee4c 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -279,7 +279,7 @@ set_device_buttonmap (GsdWacomDevice *device,
intmap = g_variant_get_fixed_array (value, &nmap, sizeof (gint32));
map = g_new0 (unsigned char, nmap);
- for (i = 0; i < nmap && i < sizeof (map); i++)
+ for (i = 0; i < nmap; i++)
map[i] = intmap[i];
g_variant_unref (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]