Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 8266:b37211166855
[gaim-migrate @ 8989]
Small oscar bug fix from GoRN (Kevin Barry) - gorn:
"In the oscar_tooltip_text ret is a pointer to a string
with a trailing \n, so at the end the \n is removed.
However if the string is never set (For mobile users or
AOL users) then you're chopping off something you
shouldn't. On x86 this doesn't seem to matter (But
could maybe do something bad (tm) under some cases),
however on PPC this causes a segfault every time you
hover over a mobile or AOL user."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 16 Feb 2004 04:01:05 +0000 |
parents | b7ff849f48dd |
children | f24172f53650 |
comparison
equal
deleted
inserted
replaced
8265:b7ff849f48dd | 8266:b37211166855 |
---|---|
5683 g_free(tmp); | 5683 g_free(tmp); |
5684 } | 5684 } |
5685 } | 5685 } |
5686 | 5686 |
5687 /* remove the trailing newline character */ | 5687 /* remove the trailing newline character */ |
5688 if (ret) | 5688 if (ret && (strlen(ret) > 0)) |
5689 ret[strlen(ret)-1] = '\0'; | 5689 ret[strlen(ret)-1] = '\0'; |
5690 return ret; | 5690 return ret; |
5691 } | 5691 } |
5692 | 5692 |
5693 static char *oscar_status_text(GaimBuddy *b) { | 5693 static char *oscar_status_text(GaimBuddy *b) { |