diff options
Diffstat (limited to 'ksmserver/server.cpp')
-rw-r--r-- | ksmserver/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ksmserver/server.cpp b/ksmserver/server.cpp index ecb3cdcde..f4068a8f3 100644 --- a/ksmserver/server.cpp +++ b/ksmserver/server.cpp @@ -366,12 +366,12 @@ Status SetAuthentication_local (int count, IceListenObj *listenObjs) for (i = 0; i < count; i ++) { char *prot = IceGetListenConnectionString(listenObjs[i]); if (!prot) continue; - char *host = (char*)strchr(prot, '/'); + char *host = strchr(prot, '/'); char *sock = 0; if (host) { *host=0; host++; - sock = (char*)strchr(host, ':'); + sock = strchr(host, ':'); if (sock) { *sock = 0; sock++; |