diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-26 18:41:12 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-05-26 18:41:12 +0000 |
commit | f2e5cd38f2b5cebe2b265413c681e538a1a51e6d (patch) | |
tree | 879f5bdece9bb1c13071055cd58f0f97075ca30b /net/scli/files/patch-ad | |
parent | Oops. You need to install *both* kinds of configurator. Which you use (diff) |
Unbreak and upgrade to 0.2.8
PR: 38576
Submitted by: Marcin Cieslak <saper@system.pl>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=60039
Diffstat (limited to '')
-rw-r--r-- | net/scli/files/patch-ad | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/scli/files/patch-ad b/net/scli/files/patch-ad new file mode 100644 index 000000000000..649c50158fb0 --- /dev/null +++ b/net/scli/files/patch-ad @@ -0,0 +1,31 @@ +--- scli/fmt.c 2002-03-27 14:41:27.000000000 +0100 ++++ scli/fmt.c_old 2002-05-02 08:03:22.000000000 +0200 +@@ -81,7 +81,7 @@ + { + static char buffer[80]; + time_t now, gmt; +- struct tm *tm; ++ struct tm *tm, now_tm; + int gmt_offset; + + now = time(NULL); +@@ -99,13 +99,14 @@ + gmt = mktime(tm); + + tm = localtime(&now); ++ now_tm = *tm; + tm->tm_isdst = 0; + gmt_offset = mktime(tm) - gmt; + + g_snprintf(buffer, sizeof(buffer), + "%04d-%02d-%02d %02d:%02d:%02d %c%02d:%02d", +- tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, +- tm->tm_hour, tm->tm_min, tm->tm_sec, ++ now_tm.tm_year + 1900, now_tm.tm_mon + 1, now_tm.tm_mday, ++ now_tm.tm_hour, now_tm.tm_min, now_tm.tm_sec, + gmt_offset >= 0 ? '+' : '-', + (int) ABS(gmt_offset) / 3600, + (int) (ABS(gmt_offset) / 60) % 60); + + + |