]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: speakup: fix an improperly-declared variable.
authorChristopher Brannon <chris@the-brannons.com>
Sat, 16 Jun 2012 21:55:20 +0000 (16:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jun 2012 00:13:06 +0000 (17:13 -0700)
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 <chris@the-brannons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c

index 92b34e29ad0619cc79f46e434f6580b0c0cac2a6..40e2488b96791bd35a5da45d93db8b7f9281cefb 100644 (file)
@@ -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;