diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-09-02 05:26:02 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-09-02 05:26:02 +0800 |
commit | f5d99cb291eb7068943ba0c55c73728338d87c01 (patch) | |
tree | f833e300078214d154252545e5e0844c84c7713d /net | |
parent | 709a729663934005314b429e89c1dc8f0380d225 (diff) | |
download | freebsd-ports-gnome-f5d99cb291eb7068943ba0c55c73728338d87c01.tar.gz freebsd-ports-gnome-f5d99cb291eb7068943ba0c55c73728338d87c01.tar.zst freebsd-ports-gnome-f5d99cb291eb7068943ba0c55c73728338d87c01.zip |
Fix off-by-one error in calculating birthdate day.
Similar fix is already in sim CVS tree.
Submitted by: fjoe, who got a lot of congrats one day earlier :)
Approved by: MAINTAINER
Diffstat (limited to 'net')
-rw-r--r-- | net/simicq/files/patch-sim::libicq::icqclient.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/simicq/files/patch-sim::libicq::icqclient.cpp b/net/simicq/files/patch-sim::libicq::icqclient.cpp new file mode 100644 index 000000000000..42137ffdff59 --- /dev/null +++ b/net/simicq/files/patch-sim::libicq::icqclient.cpp @@ -0,0 +1,11 @@ +--- sim/libicq/icqclient.cpp.orig Tue Sep 2 01:47:04 2003 ++++ sim/libicq/icqclient.cpp Tue Sep 2 01:47:21 2003 +@@ -128,7 +128,7 @@ + time_t now; + time(&now); + struct tm *tm = localtime(&now); +- if (((tm->tm_mon + 1) == month) && ((tm->tm_mday + 1) == day)) ++ if (((tm->tm_mon + 1) == month) && (tm->tm_mday == day)) + m_bBirthday = true; + } + if ((m_bBirthday != oldValue) && (m_state == Logged)) |