diff -r 2b20e78e87b3 -r 7e5229b88eea 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);