Skip to content

Commit

Permalink
Staging: xgifb: increase VBIOS_VER_MAX_LENGTH to 5
Browse files Browse the repository at this point in the history
VBIOS_VER_MAX_LENGTH was set to 4, but the value "0.84" is strcpy'd
into it.  That value is 5 long including the trailing NULL.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Jun 22, 2010
1 parent 6eed8dc commit 6e5db77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/vgatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <linux/ioctl.h>

#ifndef VBIOS_VER_MAX_LENGTH
#define VBIOS_VER_MAX_LENGTH 4
#define VBIOS_VER_MAX_LENGTH 5
#endif

#ifndef XGI_VB_CHIP_TYPE
Expand Down

0 comments on commit 6e5db77

Please sign in to comment.