Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
714d8c39
Commit
714d8c39
authored
Mar 11, 2002
by
Gerd Moellmann
Browse files
(Fload): Don't assume that message_with_ntring uses the
string it is given like a C string.
parent
b3f1e48a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/lread.c
src/lread.c
+9
-4
No files found.
src/ChangeLog
View file @
714d8c39
2002-03-11 Gerd Moellmann <gerd@gnu.org>
* lread.c (Fload): Don't assume that message_with_ntring uses the
string it is given like a C string.
2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
* xterm.h: Extern declare x_session_check_input () and
...
...
src/lread.c
View file @
714d8c39
...
...
@@ -776,17 +776,22 @@ Return t if file exists. */)
stat
((
char
*
)
XSTRING
(
found
)
->
data
,
&
s1
);
XSTRING
(
found
)
->
data
[
STRING_BYTES
(
XSTRING
(
found
))
-
1
]
=
0
;
result
=
stat
((
char
*
)
XSTRING
(
found
)
->
data
,
&
s2
);
XSTRING
(
found
)
->
data
[
STRING_BYTES
(
XSTRING
(
found
))
-
1
]
=
'c'
;
if
(
result
>=
0
&&
(
unsigned
)
s1
.
st_mtime
<
(
unsigned
)
s2
.
st_mtime
)
{
/* Make the progress messages mention that source is newer. */
newer
=
1
;
/* If we won't print another message, mention this anyway. */
if
(
!
NILP
(
nomessage
))
message_with_string
(
"Source file `%s' newer than byte-compiled file"
,
found
,
1
);
if
(
!
NILP
(
nomessage
))
{
Lisp_Object
file
;
file
=
Fsubstring
(
found
,
make_number
(
0
),
make_number
(
-
1
));
message_with_string
(
"Source file `%s' newer than byte-compiled file"
,
file
,
SMBP
(
file
));
}
}
XSTRING
(
found
)
->
data
[
STRING_BYTES
(
XSTRING
(
found
))
-
1
]
=
'c'
;
}
}
else
...
...
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