Skip to content

Commit

Permalink
Staging: speakup: fix an improperly-declared variable.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christopher Brannon authored and Greg Kroah-Hartman committed Jun 19, 2012
1 parent dc34814 commit 4ea418b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/speakup/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ea418b

Please sign in to comment.