]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
http_send: Make add_perm_list_entry() and del_perm_list_entry() generic.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 05d7b0b9f3c49e7c3dfe16fc85e65a92af9fd206..f2115832ec3a0773105c152b88e25048873c1a8b 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 1998-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -749,7 +749,9 @@ static int check_stat_line(char *line, __a_unused void *data)
 //     PARA_INFO_LOG("%s: checking: %s\n", __func__, line);
        i = stat_line_valid(line);
        if (i >= 0) {
-               line += strlen(status_item_list[i]) + 2;
+               line += strlen(status_item_list[i]) + 1;
+               if (*line == ' ')
+                       line++;
                free(stat_content[i]);
                stat_content[i] = para_strdup(line);
                print_stat_item(i);
@@ -977,7 +979,7 @@ static int send_output(void)
 static int client_cmd_cmdline(char *cmd)
 {
        int ret, fds[3] = {0, 1, 0};
-       char *c = make_message(BINDIR "/para_client %s", cmd);
+       char *c = make_message(BINDIR "/para_client -- %s", cmd);
 
        outputf(COLOR_COMMAND, "%s", c);
        print_in_bar(COLOR_MSG, "executing client command, hit any key to abort\n");