diff options
author | peter <peter@FreeBSD.org> | 2004-10-21 20:02:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-10-21 20:02:02 +0000 |
commit | 395553d8c994f017b5d2c713e7e85551ea92e985 (patch) | |
tree | c0cc34e7dd33ec204926fbf3f2f941b933d3e436 /contrib/libreadline/shell.c | |
parent | eb9e7f47d612dd6312124057688921ae2dffc485 (diff) | |
download | FreeBSD-src-395553d8c994f017b5d2c713e7e85551ea92e985.zip FreeBSD-src-395553d8c994f017b5d2c713e7e85551ea92e985.tar.gz |
Force these files back off the vendor branch. They should NEVER have been
put back on there in the first place. :-(
Note that complete.c will need a readline 5.0 merge.
Diffstat (limited to 'contrib/libreadline/shell.c')
-rw-r--r-- | contrib/libreadline/shell.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/libreadline/shell.c b/contrib/libreadline/shell.c index 88b15c5..e2a01a4 100644 --- a/contrib/libreadline/shell.c +++ b/contrib/libreadline/shell.c @@ -1,4 +1,5 @@ /* $FreeBSD$ */ + /* shell.c -- readline utility functions that are normally provided by bash when readline is linked as part of the shell. */ @@ -127,6 +128,7 @@ sh_set_lines_and_columns (lines, cols) b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("LINES=") + 1); sprintf (b, "LINES=%d", lines); putenv (b); + b = (char *)xmalloc (INT_STRLEN_BOUND (int) + sizeof ("COLUMNS=") + 1); sprintf (b, "COLUMNS=%d", cols); putenv (b); @@ -135,9 +137,12 @@ sh_set_lines_and_columns (lines, cols) b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1); sprintf (b, "%d", lines); setenv ("LINES", b, 1); + free (b); + b = (char *)xmalloc (INT_STRLEN_BOUND (int) + 1); sprintf (b, "%d", cols); setenv ("COLUMNS", b, 1); + free (b); # endif /* HAVE_SETENV */ #endif /* !HAVE_PUTENV */ } |