From: Christopher Brannon Date: Sat, 16 Jun 2012 21:55:20 +0000 (-0500) Subject: Staging: speakup: fix an improperly-declared variable. X-Git-Tag: v3.6-rc1~100^2~728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ea418b8b2fa8a70d0fcc8231b65e67b3a72984b;p=platform%2Fkernel%2Flinux-3.10.git Staging: speakup: fix an improperly-declared variable. A local static variable was declared as a pointer to a string constant. We're assigning to the underlying memory, so it needs to be an array instead. Signed-off-by: Christopher Brannon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index 92b34e2..40e2488 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -1854,7 +1854,7 @@ static void speakup_bits(struct vc_data *vc) static int handle_goto(struct vc_data *vc, u_char type, u_char ch, u_short key) { - static u_char *goto_buf = "\0\0\0\0\0\0"; + static u_char goto_buf[8]; static int num; int maxlen, go_pos; char *cp;