From: Colin Patrick McCabe Date: Fri, 13 May 2011 16:58:50 +0000 (-0700) Subject: handle_core: fix silly year issue X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=847fe0ce05cf5e21a721b6622da2981953540138;p=handle_core handle_core: fix silly year issue Should be using tm_year + 1900 Signed-off-by: Colin McCabe --- 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); }