--- /dev/null
+diff --git a/src/gnome-cmd-user-actions.cc~ b/src/gnome-cmd-user-actions.cc
+index caca3ea..3cce5b0 100644
+--- a/src/gnome-cmd-user-actions.cc~
++++ b/src/gnome-cmd-user-actions.cc
+@@ -1130,7 +1130,7 @@ void command_root_mode (GtkMenuItem *menuitem, gpointer not_used)
+ argv[i++] = su;
+ if (need_c)
+ argv[i++] = "-c";
+- argv[i++] = g_get_prgname ();
++ argv[i++] = const_cast<char*>(g_get_prgname ());
+ argv[i++] = NULL;
+
+ GError *error = NULL;
Patch2: %{name}-gcc47.patch
Patch3: %{name}-format-security.patch
Patch4: %{name}-am.patch
+Patch5: %{name}-const-cast.patch
URL: http://www.nongnu.org/gcmd/
BuildRequires: autoconf
BuildRequires: automake
%patch2 -p1
%patch3 -p1
%patch4 -p0
+%patch5 -p1
%build
%{__glib_gettextize}