Not that there's much difference between 4*(256 bytes) and 256*(4 bytes) of memory...
Signed-off-by: Jason Gerecke <killert...@gmail.com> --- tools/xsetwacom.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 8a84e9a..8c6d35d 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1225,7 +1225,7 @@ static void special_map_property(Display *dpy, XDevice *dev, Atom btnact_prop, i unsigned long btnact_nitems, bytes_after; unsigned long nitems = 0; - data = calloc(sizeof(long), 256); + data = calloc(256, sizeof(long)); if (!parse_actions(dpy, argc, argv, data, &nitems)) return; -- 1.7.4.1 ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel