summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2000-11-19 20:51:12 +0000
committerKeith Packard <keithp@keithp.com>2000-11-19 20:51:12 +0000
commit02568ec5a8f278faaa26c973fcb424da3fd31f2b (patch)
tree5fb337a29b97965306cac28e8335e379849ac404 /hw
parent8f634a6516caca0e4be875e696820a820e480cff (diff)
kdrive: vesa get mode using uninitialized value
Diffstat (limited to 'hw')
-rw-r--r--hw/kdrive/vesa/vbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/vesa/vbe.c b/hw/kdrive/vesa/vbe.c
index d4a2817c8..b1e8c7411 100644
--- a/hw/kdrive/vesa/vbe.c
+++ b/hw/kdrive/vesa/vbe.c
@@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/hw/kdrive/vesa/vbe.c,v 1.5 2000/09/27 20:46:37 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/kdrive/vesa/vbe.c,v 1.6 2000/10/20 00:19:50 keithp Exp $ */
#include "vesa.h"
@@ -128,7 +128,7 @@ VbeGetModes (Vm86InfoPtr vi, VesaModePtr modes, int nmode)
if (code < 0)
return code;
- memset (modes, '\0', n * sizeof (VesaModeRec));
+ memset (modes, '\0', nmode * sizeof (VesaModeRec));
p = MAKE_POINTER_1(vib.VideoModePtr);
for (n = 0; n < nmode; n++)