]> Pileus Git - ~andy/gtk/commitdiff
Fix casts in calls to g_utf8_validate()
authorMichael Natterer <mitch@gimp.org>
Thu, 27 Aug 2009 19:10:25 +0000 (21:10 +0200)
committerMichael Natterer <mitch@gimp.org>
Thu, 27 Aug 2009 19:14:21 +0000 (21:14 +0200)
The "end" parameter is (const gchar **), not (const gchar *).

gtk/gtkmountoperation-x11.c

index 1bfb50308b0d9a719227403c0eedab4700f25080..a20c8cf428a08e7041501c3bc59bcad6b3439f32 100644 (file)
@@ -665,7 +665,7 @@ pid_get_env (GPid         pid,
               ret = g_strdup (env + n + key_len + 1);
 
               /* skip invalid UTF-8 */
-              if (!g_utf8_validate (ret, -1, (const gchar *) &end))
+              if (!g_utf8_validate (ret, -1, (const gchar **) &end))
                 *end = '\0';
               break;
             }
@@ -707,7 +707,7 @@ pid_get_command_line (GPid pid)
     }
 
   /* skip invalid UTF-8 */
-  if (!g_utf8_validate (cmdline_contents, -1, (const gchar *) &end))
+  if (!g_utf8_validate (cmdline_contents, -1, (const gchar **) &end))
       *end = '\0';
 
  out: