diff options
author | fjoe <fjoe@FreeBSD.org> | 2003-09-01 21:26:02 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2003-09-01 21:26:02 +0000 |
commit | f5d99cb291eb7068943ba0c55c73728338d87c01 (patch) | |
tree | f833e300078214d154252545e5e0844c84c7713d /net-im/simicq | |
parent | 709a729663934005314b429e89c1dc8f0380d225 (diff) | |
download | FreeBSD-ports-f5d99cb291eb7068943ba0c55c73728338d87c01.zip FreeBSD-ports-f5d99cb291eb7068943ba0c55c73728338d87c01.tar.gz |
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-im/simicq')
-rw-r--r-- | net-im/simicq/files/patch-sim::libicq::icqclient.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-im/simicq/files/patch-sim::libicq::icqclient.cpp b/net-im/simicq/files/patch-sim::libicq::icqclient.cpp new file mode 100644 index 0000000..42137ff --- /dev/null +++ b/net-im/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)) |