summaryrefslogtreecommitdiff
path: root/src/RdFToBuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RdFToBuf.c')
-rw-r--r--src/RdFToBuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RdFToBuf.c b/src/RdFToBuf.c
index 1b386f8..4ee9265 100644
--- a/src/RdFToBuf.c
+++ b/src/RdFToBuf.c
@@ -72,7 +72,7 @@ XpmReadFileToBuffer(
*buffer_return = NULL;
#ifndef VAX11C
- fd = open(filename, O_RDONLY);
+ fd = open(filename, O_RDONLY | O_CLOEXEC);
#else
fd = open(filename, O_RDONLY, NULL);
#endif