Dupe OS type for ident string before using it

This commit is contained in:
Alexander Butenko 2010-02-22 19:02:32 +01:00 committed by Christian Dywan
parent f3f53db4d7
commit 458c5109be

View file

@ -1188,7 +1188,7 @@ get_sys_name (void)
{
struct utsname name;
if (uname (&name) != -1)
sys_name = name.sysname;
sys_name = g_strdup(name.sysname);
else
sys_name = "Unix";
}