diff options
author | Christopher Brannon <chris@the-brannons.com> | 2012-06-16 16:55:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 09:47:24 -0700 |
commit | 274fca52f11e2a4e911b5868ccc3e1659b403e5e (patch) | |
tree | 9bb4edcc808dc83343d1ddb354d347586b7fbbce | |
parent | c820f129c9afffb0ecb74312123535a303197875 (diff) | |
download | lwn-274fca52f11e2a4e911b5868ccc3e1659b403e5e.tar.gz lwn-274fca52f11e2a4e911b5868ccc3e1659b403e5e.zip |
Staging: speakup: fix an improperly-declared variable.
commit 4ea418b8b2fa8a70d0fcc8231b65e67b3a72984b upstream.
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>
-rw-r--r-- | drivers/staging/speakup/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index 42fcf7e9cb64..59a6d4da873b 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -1855,7 +1855,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; |