diff options
| author | Paul Eggert | 2011-09-30 13:22:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-30 13:22:01 -0700 |
| commit | 4222c55da73988a2bf397184e46505fc9a52f8b4 (patch) | |
| tree | 42ccf25d299fbf1ad4030b0d613c7d3bca89edde /src/buffer.c | |
| parent | 9229fe8763afbfe5e416b8d6826307282bd84b60 (diff) | |
| download | emacs-4222c55da73988a2bf397184e46505fc9a52f8b4.tar.gz emacs-4222c55da73988a2bf397184e46505fc9a52f8b4.zip | |
* buffer.h (struct buffer): Use time_t, not int, for a time stamp.
This fixes a Y2038 bug on 64-bit hosts.
* buffer.c (reset_buffer):
* fileio.c (Fdo_auto_save, Fset_buffer_auto_saved)
(Fclear_buffer_auto_save_failure):
Use 0, not -1, to represent an unset failure time, since time_t
might not be signed.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index dffdeb536fc..f38c9a739a6 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -724,7 +724,7 @@ reset_buffer (register struct buffer *b) | |||
| 724 | b->prevent_redisplay_optimizations_p = 1; | 724 | b->prevent_redisplay_optimizations_p = 1; |
| 725 | BVAR (b, backed_up) = Qnil; | 725 | BVAR (b, backed_up) = Qnil; |
| 726 | BUF_AUTOSAVE_MODIFF (b) = 0; | 726 | BUF_AUTOSAVE_MODIFF (b) = 0; |
| 727 | b->auto_save_failure_time = -1; | 727 | b->auto_save_failure_time = 0; |
| 728 | BVAR (b, auto_save_file_name) = Qnil; | 728 | BVAR (b, auto_save_file_name) = Qnil; |
| 729 | BVAR (b, read_only) = Qnil; | 729 | BVAR (b, read_only) = Qnil; |
| 730 | b->overlays_before = NULL; | 730 | b->overlays_before = NULL; |