patch-2.1.36 linux/drivers/char/vt.c
Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/vc_screen.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Thu Apr 17 09:20:38 1997
-  Orig file: 
v2.1.35/linux/drivers/char/vt.c
-  Orig date: 
Mon Apr 14 16:28:11 1997
diff -u --recursive --new-file v2.1.35/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -311,7 +311,7 @@
 	int sz;
 	int delta;
 	char *first_free, *fj, *fnw;
-	int j, k, i = 0;
+	int i, j, k;
 
 	/* we mostly copy too much here (512bytes), but who cares ;) */
 	if (copy_from_user(&tmp, user_kdgkb, sizeof(struct kbsentry)))
@@ -319,6 +319,7 @@
 	tmp.kb_string[sizeof(tmp.kb_string)-1] = '\0';
 	if (tmp.kb_func >= MAX_NR_FUNC)
 		return -EINVAL;
+	i = tmp.kb_func;
 
 	switch (cmd) {
 	case KDGKBSENT:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov