mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
Staging: speakup: fix an improperly-declared variable.
commit 4ea418b8b2 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c820f129c9
commit
274fca52f1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user