aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/coding.c4
-rw-r--r--src/fileio.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 547fcbb8120..cd5a12972e6 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5270,7 +5270,9 @@ decode_coding_raw_text (struct coding_system *coding)
5270 coding->chars_at_source = 1; 5270 coding->chars_at_source = 1;
5271 coding->consumed_char = coding->src_chars; 5271 coding->consumed_char = coding->src_chars;
5272 coding->consumed = coding->src_bytes; 5272 coding->consumed = coding->src_bytes;
5273 if (eol_dos && coding->source[coding->src_bytes - 1] == '\r') 5273 if (eol_dos
5274 && coding->src_bytes > 0 /* empty source text? */
5275 && coding->source[coding->src_bytes - 1] == '\r')
5274 { 5276 {
5275 coding->consumed_char--; 5277 coding->consumed_char--;
5276 coding->consumed--; 5278 coding->consumed--;
diff --git a/src/fileio.c b/src/fileio.c
index 212d2ce6f98..291c316102f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3788,7 +3788,8 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
3788DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, 3788DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0,
3789 doc: /* Return t if file FILE1 is newer than file FILE2. 3789 doc: /* Return t if file FILE1 is newer than file FILE2.
3790If FILE1 does not exist, the answer is nil; 3790If FILE1 does not exist, the answer is nil;
3791otherwise, if FILE2 does not exist, the answer is t. */) 3791otherwise, if FILE2 does not exist, the answer is t.
3792For existing files, this compares their last-modified times. */)
3792 (Lisp_Object file1, Lisp_Object file2) 3793 (Lisp_Object file1, Lisp_Object file2)
3793{ 3794{
3794 struct stat st1, st2; 3795 struct stat st1, st2;