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 committed 2005-05-08 02:18:14 +00:00
1 parent 6884fee4be
commit 1262b6e7ef
5 files changed
+10 -3

No files matched your search

+1 -1
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];