patch-2.1.10 linux/fs/binfmt_elf.c

Next file: linux/fs/buffer.c
Previous file: linux/drivers/scsi/sr_vendor.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.9/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -144,20 +144,14 @@
 	__put_user((unsigned long)argc,--sp);
 	current->mm->arg_start = (unsigned long) p;
 	while (argc-->0) {
-		char c;
 		__put_user(p,argv++);
-		do {
-			get_user(c,p++);
-		} while (c);
+		p += strlen_user(p);
 	}
 	__put_user(NULL, argv);
 	current->mm->arg_end = current->mm->env_start = (unsigned long) p;
 	while (envc-->0) {
-		char c;
 		__put_user(p,envp++);
-		do {
-			get_user(c,p++);
-		} while (c);
+		p += strlen_user(p);
 	}
 	__put_user(NULL, envp);
 	current->mm->env_end = (unsigned long) p;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov