Better copying of limited sized string.

Use g_strlcpy() instead of g_snprintf()