patch-2.1.4 linux/fs/proc/root.c
Next file: linux/fs/proc/scsi.c
Previous file: linux/fs/proc/net.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sun Oct 13 21:11:19 1996
-  Orig file: 
v2.1.3/linux/fs/proc/root.c
-  Orig date: 
Thu Oct 10 19:10:56 1996
diff -u --recursive --new-file v2.1.3/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -226,7 +226,7 @@
 	len = 1 + sprintf(tmp, "%d", current->pid);
 	if (buflen < len)
 		len = buflen;
-	memcpy_tofs(buffer, tmp, len);
+	copy_to_user(buffer, tmp, len);
 	return len;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov