]> spindle.queued.net Git - midori/commitdiff
Dupe OS type for ident string before using it
authorAlexander Butenko <a.butenka@gmail.com>
Mon, 22 Feb 2010 18:02:32 +0000 (19:02 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 22 Feb 2010 18:03:45 +0000 (19:03 +0100)
midori/midori-websettings.c

index 8b133cc28b670994e3764bf5fbb35aa2bda83ffc..d07baa01b0609bcd77f337cc521831d789672391 100644 (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";
     }