* vfs.c (vfs_split_text): Fill `columns' with zeroes before

writing new data into it.
This commit is contained in:
Pavel Roskin 2001-05-22 22:40:44 +00:00
parent f729bde328
commit 038099783c
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2001-05-22 Pavel Roskin <proski@gnu.org>
* vfs.c (vfs_split_text): Fill `columns' with zeroes before
writing new data into it.
* fish.c (free_archive): Use `exit' instead of `logout' - the
later fails under non-login shells.
(pipeopen): Redirect stderr of ssh to /dev/null.

View File

@ -1326,6 +1326,8 @@ vfs_split_text (char *p)
char *original = p;
int numcols;
memset (columns, 0, sizeof (columns));
for (numcols = 0; *p && numcols < MAXCOLS; numcols++){
while (*p == ' ' || *p == '\r' || *p == '\n'){
*p = 0;