> I think "/proc/self" is too big.
>
> *** root.c.old Tue Apr 30 03:09:45 1996
> --- root.c.new Wed Apr 16 03:07:42 1997
> ***************
> *** 223,229 ****
> char tmp[30];
>
> iput(inode);
> ! len = 1 + sprintf(tmp, "%d", current->pid);
sprintf doesn't count the final null character. If you are going to
allocate space to copy the string, you will need that extra one.
-- Chris Arguin | "...All we had were Zeros and Ones -- And cpa@hopper.unh.edu | sometimes we didn't even have Ones." +--------------+ - Dilbert, by Scott Adams http://leonardo.sr.unh.edu/arguin/home.html |