ksmserver: Fix copying of auth data
Despite IceGenerateMagicCookie returning null terminated char*, the data itself is pure data may contain null bytes. For this reason we must copy the entire data_length, and not use string functions.
This fixes a bug where 1 in 10 logins would not have working session management if the generated data happened to contain a null byte.
Thanks to Matt Whitlock kde@mattwhitlock.name