[patch] trunk/lib/silcclient/client_entry.c
| Newsgroups | gmane.network.silc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
find a teensy patch along, fixing an obvious bug. We want to compare
the return value of silc_parse_userfqdn with 2, not the return value of
sizeof.
cheers,
stesie
--
Do not worry about your difficulties in mathematics;
I can assure you that mine are still greater.
-- Albert Einstein
_______________________________________________________________________
Info: https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ: http://silcnet.org/support/faq/
client_entry.c.diff
(text/x-diff, 380 B)
--- client_entry.c.orig 2007-06-02 14:04:19.000000000 +0200
+++ client_entry.c 2007-06-02 14:04:29.000000000 +0200
@@ -340,7 +340,7 @@
/* Parse server name from the nickname if set */
if (silc_parse_userfqdn(nickname, nick, sizeof(nick),
- serv, sizeof(serv) == 2))
+ serv, sizeof(serv)) == 2)
server = (const char *)serv;
nickname = (const char *)nick;