Mercurial > pidgin
diff src/protocols/irc/msgs.c @ 11026:a659e6bac294
[gaim-migrate @ 12901]
Don't pass NULL to sprintf.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 23 Jun 2005 15:44:16 +0000 |
parents | c94f40ffcafb |
children | 17142948653e |
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c Thu Jun 23 03:04:52 2005 +0000 +++ b/src/protocols/irc/msgs.c Thu Jun 23 15:44:16 2005 +0000 @@ -363,7 +363,7 @@ names = cur = g_string_free(irc->names, FALSE); irc->names = NULL; if (irc->nameconv) { - msg = g_strdup_printf(_("Users on %s: %s"), args[1], names); + msg = g_strdup_printf(_("Users on %s: %s"), args[1], names ? names : ""); if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT) gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", msg, GAIM_MESSAGE_SYSTEM|GAIM_MESSAGE_NO_LOG, time(NULL)); else