# HG changeset patch # User Stu Tomlinson # Date 1134697915 0 # Node ID 50ea9356bf52e6eb6a541c1253038a4cc6409365 # Parent 59303812aa9c5c7948576046ea2b1907865b8fcd [gaim-migrate @ 14803] I'm not 255, and I wasn't born on 01/00/0 PS. Happy Birthday Mum! committer: Tailor Script diff -r 59303812aa9c -r 50ea9356bf52 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Fri Dec 16 01:49:56 2005 +0000 +++ b/src/protocols/oscar/oscar.c Fri Dec 16 01:51:55 2005 +0000 @@ -6019,7 +6019,7 @@ oscar_string_append(str, "\n
", _("Mobile Phone"), info->mobile); if (info->gender != 0) oscar_string_append(str, "\n
", _("Gender"), info->gender == 1 ? _("Female") : _("Male")); - if (info->birthyear || info->birthmonth || info->birthday) { + if ((info->birthyear > 1900) && (info->birthmonth > 0) && (info->birthday > 0)) { char date[30]; struct tm tm; tm.tm_mday = (int)info->birthday; @@ -6028,7 +6028,7 @@ gaim_strftime(date, sizeof(date), "%x", &tm); oscar_string_append(str, "\n
", _("Birthday"), date); } - if (info->age) { + if ((info->age > 0) && (info->age < 255)) { char age[5]; snprintf(age, sizeof(age), "%hhd", info->age); oscar_string_append(str, "\n
", _("Age"), age);