[gtk+] Fix casts in calls to g_utf8_validate()
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix casts in calls to g_utf8_validate()
- Date: Thu, 27 Aug 2009 19:14:59 +0000 (UTC)
commit 6a278af6d2aaa8466fbc1750fbcc6cd56e1f4cdd
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 27 21:10:25 2009 +0200
Fix casts in calls to g_utf8_validate()
The "end" parameter is (const gchar **), not (const gchar *).
gtk/gtkmountoperation-x11.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmountoperation-x11.c b/gtk/gtkmountoperation-x11.c
index 1bfb503..a20c8cf 100644
--- a/gtk/gtkmountoperation-x11.c
+++ b/gtk/gtkmountoperation-x11.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]