Gunnar,
returning a pointer to a static array on the stack will cause the crash.
Can you please try with
char *langlist, *language;
[...]
if (langlist != NULL && strlen(langlist) > 0) {
char *colon = index (langlist, ':');
if (colon)
language = g_strndup (langlist, colon - langlist);
else
language = g_strdup (langlist);
return language;
}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/740754
Title:
Language selection for newly created user confusing
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs