Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 4627:bcfda01c707a
[gaim-migrate @ 4918]
Ok, how's this?
You know what I was thinking?
"Naysayers" is a funny word.
You know what other word is funny?
"Fillibuster."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 28 Feb 2003 22:51:17 +0000 |
parents | 819ba05f5b1b |
children | ebae85185165 |
comparison
equal
deleted
inserted
replaced
4626:43f0bfd14614 | 4627:bcfda01c707a |
---|---|
3544 } | 3544 } |
3545 if (info->gender) { | 3545 if (info->gender) { |
3546 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Gender:</b> ", info->gender==1 ? "Female" : "Male", NULL); g_free(tmp); | 3546 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Gender:</b> ", info->gender==1 ? "Female" : "Male", NULL); g_free(tmp); |
3547 } | 3547 } |
3548 if (info->birthyear || info->birthmonth || info->birthday) { | 3548 if (info->birthyear || info->birthmonth || info->birthday) { |
3549 char date[15]; | 3549 char date[30]; |
3550 snprintf(date, sizeof(date), "%hhd/%hhd/%hd", info->birthmonth, info->birthday, info->birthyear); | 3550 struct tm tm; |
3551 tm.tm_mday = (int)info->birthday; | |
3552 tm.tm_mon = (int)info->birthmonth-1; | |
3553 tm.tm_year = (int)info->birthyear-1900; | |
3554 strftime(date, sizeof(date), "%e %B %Y", &tm); | |
3551 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Birthday:</b> ", date, NULL); g_free(tmp); | 3555 tmp = buf; buf = g_strconcat(tmp, "\n<br><b>Birthday:</b> ", date, NULL); g_free(tmp); |
3552 } | 3556 } |
3553 if (info->age) { | 3557 if (info->age) { |
3554 char age[5]; | 3558 char age[5]; |
3555 snprintf(age, sizeof(age), "%hhd", info->age); | 3559 snprintf(age, sizeof(age), "%hhd", info->age); |