Replace carriage returns against spaces in commands

This commit is contained in:
Mike Massonnet
2010-05-28 15:46:35 +02:00
parent cdf06e5f6f
commit 8d32b99253

View File

@@ -118,7 +118,7 @@ setting_changed (GObject *object, GParamSpec *pspec, XtmTaskManager *manager)
static gchar * static gchar *
pretty_cmdline (gchar *cmdline, gchar *comm) pretty_cmdline (gchar *cmdline, gchar *comm)
{ {
gchar *text = g_strchomp (g_strdup (cmdline)); gchar *text = g_strchomp (g_strdelimit (g_strdup (cmdline), "\n\r", ' '));
if (!full_cmdline && sizeof (text) > 3) if (!full_cmdline && sizeof (text) > 3)
{ {
/* Shorten full path to commands and wine applications */ /* Shorten full path to commands and wine applications */