Signed-off-by: Jason Gerecke <killert...@gmail.com> --- tools/xsetwacom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 5a5173d..805fba9 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1252,7 +1252,7 @@ static Bool parse_actions(Display *dpy, int argc, char **argv, unsigned long* da if (nwords==1 && sscanf(words[0], "%d", &i) == 1) { /* Mangle "simple" button maps into proper actions */ - char **new_words = realloc(words, 2); + char **new_words = realloc(words, sizeof(char*)*2); if (new_words == NULL) { fprintf(stderr, "Unable to reallocate memory.\n"); -- 2.1.0 ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel