src/protocols/oscar/oscar.c

changeset 12491
7e5229b88eea
parent 12486
58a4a7b22512
child 12588
7d1f39a8cb7b
--- 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);

mercurial