From 847fe0ce05cf5e21a721b6622da2981953540138 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Fri, 13 May 2011 09:58:50 -0700 Subject: [PATCH] handle_core: fix silly year issue Should be using tm_year + 1900 Signed-off-by: Colin McCabe --- handle_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/handle_core.c b/handle_core.c index 0ae3f82..93d03cc 100644 --- a/handle_core.c +++ b/handle_core.c @@ -80,7 +80,7 @@ static void get_core_name(const char *core_dir, const char *exe_name, time(&now); tm = localtime_r(&now, &tm_buf); snprintf(core_name, PATH_MAX, "%s/core.%d-%lld-%lld_%lld.%s", core_dir, - tm->tm_year, (long long)tm->tm_mon, (long long)tm->tm_mday, + tm->tm_year + 1900, (long long)tm->tm_mon, (long long)tm->tm_mday, (long long)now, exe_name); } -- 1.6.6.rc1.39.g9a42