Fri, 16 Dec 2005 01:51:55 +0000
[gaim-migrate @ 14803]
I'm not 255, and I wasn't born on 01/00/0
PS. Happy Birthday Mum!
| src/protocols/oscar/oscar.c | file | annotate | diff | comparison | revisions |
--- 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<br>", _("Mobile Phone"), info->mobile); if (info->gender != 0) oscar_string_append(str, "\n<br>", _("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<br>", _("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<br>", _("Age"), age);