summaryrefslogtreecommitdiff
path: root/src/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgb.c')
-rw-r--r--src/rgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgb.c b/src/rgb.c
index 5c350eb..de0d17f 100644
--- a/src/rgb.c
+++ b/src/rgb.c
@@ -66,7 +66,7 @@ xpmReadRgbNames(
xpmRgbName *rgb;
/* Open the rgb text file. Abort if error. */
- if ((rgbf = fopen(rgb_fname, "r")) == NULL)
+ if ((rgbf = fopen(rgb_fname, "r" FOPEN_CLOEXEC)) == NULL)
return 0;
/* Loop reading each line in the file. */