aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-01-12 15:41:46 +0100
committerPatrik Nyblom <[email protected]>2011-01-12 15:41:46 +0100
commita1a83039a77d39f7691969503d190cb6dfcd49c9 (patch)
treeda62aac8cedb81807b6b724165ba6f0d94b13bdc
parentc6abed0fa0cbda3247bfd935bdc325f8983320cc (diff)
downloadotp-a1a83039a77d39f7691969503d190cb6dfcd49c9.tar.gz
otp-a1a83039a77d39f7691969503d190cb6dfcd49c9.tar.bz2
otp-a1a83039a77d39f7691969503d190cb6dfcd49c9.zip
Remove strange name field in efile_drv.c as it upsets -D_FORTIFY_SOURCE
-rw-r--r--erts/emulator/drivers/common/efile_drv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index 786fa7da77..6449c6f506 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -385,7 +385,6 @@ struct t_data
ErlDrvBinary *binp;
int size;
int offset;
- char name[1];
} read_file;
struct {
struct t_readdir_buf *first_buf;
@@ -1117,7 +1116,7 @@ static void invoke_read_file(void *data)
Sint64 size;
if (! (d->result_ok =
- efile_openfile(&d->errInfo, d->c.read_file.name,
+ efile_openfile(&d->errInfo, d->b,
EFILE_MODE_READ, &fd, &size))) {
goto done;
}
@@ -3071,7 +3070,7 @@ file_outputv(ErlDrvData e, ErlIOVec *ev) {
d->command = command;
d->reply = !0;
/* Copy name */
- FILENAME_COPY(d->c.read_file.name, filename);
+ FILENAME_COPY(d->b, filename);
d->c.read_file.binp = NULL;
d->invoke = invoke_read_file;
d->free = free_read_file;