Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
66cb9c07
Commit
66cb9c07
authored
Aug 29, 1998
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(x_create_bitmap_from_file): Fail immediately if magic.
parent
f78643ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/xfns.c
src/xfns.c
+3
-0
No files found.
src/xfns.c
View file @
66cb9c07
...
...
@@ -590,6 +590,9 @@ x_create_bitmap_from_file (f, file)
fd
=
openp
(
Vx_bitmap_file_path
,
file
,
""
,
&
found
,
0
);
if
(
fd
<
0
)
return
-
1
;
/* XReadBitmapFile won't handle magic file names. */
if
(
fd
==
0
)
return
-
1
;
close
(
fd
);
filename
=
(
char
*
)
XSTRING
(
found
)
->
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment