diff --git a/src/filemanager/filegui.c b/src/filemanager/filegui.c
index 5b76b649e..0cd2cf946 100644
a
|
b
|
|
64 | 64 | #include <ctype.h> |
65 | 65 | #include <stdio.h> |
66 | 66 | #include <string.h> |
| 67 | #include <limits.h> /* INT_MAX */ |
67 | 68 | #include <sys/types.h> |
68 | 69 | #include <sys/stat.h> |
69 | 70 | |
… |
… |
file_eta_prepare_for_show (char *buffer, double eta_secs, gboolean always_show) |
358 | 359 | eta_secs = 1.0; |
359 | 360 | } |
360 | 361 | |
361 | | file_frmt_time (_fmt_buff, eta_secs); |
| 362 | if (eta_secs >= INT_MAX) |
| 363 | strcpy (_fmt_buff, "--"); |
| 364 | else |
| 365 | file_frmt_time (_fmt_buff, eta_secs); |
| 366 | |
362 | 367 | g_snprintf (buffer, BUF_TINY, _("ETA %s"), _fmt_buff); |
363 | 368 | } |
364 | 369 | |