patch-2.1.36 linux/fs/proc/root.c
Next file: linux/fs/romfs/inode.c
Previous file: linux/fs/nfsd/vfs.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Apr 16 10:55:21 1997
- Orig file:
v2.1.35/linux/fs/proc/root.c
- Orig date:
Mon Apr 7 11:35:31 1997
diff -u --recursive --new-file v2.1.35/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -365,7 +365,7 @@
char tmp[30];
iput(inode);
- len = 1 + sprintf(tmp, "%d", current->pid);
+ len = sprintf(tmp, "%d", current->pid);
if (buflen < len)
len = buflen;
copy_to_user(buffer, tmp, len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov