]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
aft.c: Fix a possible memory leak.
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index f33fa7c8c42f81ab0f9ea4c724473d9861dd91e2..40d521bcf81ceb546a9675b5729c182109a07cf6 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -23,7 +23,6 @@
 
 /** define the array of error lists needed by para_gui */
 INIT_GUI_ERRLISTS;
-extern const char *status_item_list[NUM_STAT_ITEMS];
 static char *stat_content[NUM_STAT_ITEMS];
 
 #define STANDARD_STATUS_BAR "para_gui " PACKAGE_VERSION " (hit ? for help)"
@@ -749,7 +748,7 @@ 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]) + 1;
+               line += strlen(status_item_list[i]) + 2;
                free(stat_content[i]);
                stat_content[i] = para_strdup(line);
                print_stat_item(i);