openbsd-ports/net/silc-client/patches/patch-lib_silcclient_client_c
brad 9dc951b161 fix an issue with nick names ever since UTF-8 encoding was added. the silc
client under some bizarre conditions would not start, no error messages
or anything.

nasty diff from mjc@, poor marco@ was suffering due to this issue.
2005-07-28 21:28:10 +00:00

13 lines
608 B
Plaintext

$OpenBSD: patch-lib_silcclient_client_c,v 1.1 2005/07/28 21:28:10 brad Exp $
--- lib/silcclient/client.c.orig Thu Mar 31 01:07:10 2005
+++ lib/silcclient/client.c Thu Jul 28 15:23:55 2005
@@ -137,7 +137,7 @@ bool silc_client_init(SilcClient client)
SILC_LOG_ERROR(("Malformed hostname '%s'", client->hostname));
return FALSE;
}
- if (!silc_utf8_valid(client->realname, strlen(client->realname))) {
+ if ((*client->realname != '\0') && (!silc_utf8_valid(client->realname, strlen(client->realname)))) {
SILC_LOG_ERROR(("Malformed realname '%s'", client->realname));
return FALSE;
}