2005-05-08 Yoshinori K. Okuji <okuji@enbug.org>

* stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
  arrays of pointers for USUAL, to avoid read-only strings. Reported
  by Sven Wegener <swegener@gentoo.org>.
This commit is contained in:
okuji 2005-05-08 02:18:14 +00:00
parent 6884fee4be
commit 1262b6e7ef
5 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2005-05-08 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
arrays of pointers for USUAL, to avoid read-only strings. Reported
by Sven Wegener <swegener@gentoo.org>.
2005-03-28 Yoshinori K. Okuji <okuji@enbug.org>
* lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of

1
THANKS
View file

@ -105,6 +105,7 @@ Serguei Tzukanov <tzukanov@narod.ru>
Stefan Ondrejicka <ondrej@idata.sk>
Stephen Early <steve@greenend.org.uk>
Steven Dick <ssd.gnu@mmae.ucf.edu>
Sven Wegener <swegener@gentoo.org>
Takehiro Suzuki <takehiro@coral.ocn.ne.jp>
Taketo Kabe <kabe@sra-tohoku.co.jp>
Thierry DELHAISE <thierry.delhaise@delhaise.com>

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH GRUB "8" "March 2005" "grub (GNU GRUB 0.96)" FSF
.TH GRUB "8" "May 2005" "grub (GNU GRUB 0.96)" FSF
.SH NAME
grub \- the grub shell
.SH SYNOPSIS

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH MBCHK "1" "March 2005" "mbchk (GNU GRUB 0.96)" FSF
.TH MBCHK "1" "May 2005" "mbchk (GNU GRUB 0.96)" FSF
.SH NAME
mbchk \- check the format of a Multiboot kernel
.SH SYNOPSIS

View file

@ -334,7 +334,7 @@ next_dentry (xfs_ino_t *ino)
{
int namelen = 1;
int toread;
static char *usual[2] = {".", ".."};
static char usual[2][3] = {".", ".."};
static xfs_dir2_sf_entry_t *sfe;
char *name = usual[0];