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.
This commit is contained in:
parent
83f9d7cc09
commit
9dc951b161
12
net/silc-client/patches/patch-lib_silcclient_client_c
Normal file
12
net/silc-client/patches/patch-lib_silcclient_client_c
Normal file
@ -0,0 +1,12 @@
|
||||
$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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user