patch-2.4.0-test6 linux/fs/binfmt_script.c
Next file: linux/fs/block_dev.c
Previous file: linux/fs/binfmt_misc.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Jul 31 10:51:09 2000
- Orig file:
v2.4.0-test5/linux/fs/binfmt_script.c
- Orig date:
Mon Jul 10 16:47:25 2000
diff -u --recursive --new-file v2.4.0-test5/linux/fs/binfmt_script.c linux/fs/binfmt_script.c
@@ -18,7 +18,7 @@
{
char *cp, *i_name, *i_arg;
struct file *file;
- char interp[128];
+ char interp[BINPRM_BUF_SIZE];
int retval;
if ((bprm->buf[0] != '#') || (bprm->buf[1] != '!') || (bprm->sh_bang))
@@ -33,9 +33,9 @@
fput(bprm->file);
bprm->file = NULL;
- bprm->buf[127] = '\0';
+ bprm->buf[BINPRM_BUF_SIZE - 1] = '\0';
if ((cp = strchr(bprm->buf, '\n')) == NULL)
- cp = bprm->buf+127;
+ cp = bprm->buf+BINPRM_BUF_SIZE-1;
*cp = '\0';
while (cp > bprm->buf) {
cp--;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)