projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7932110
)
gui.c: Handle empty status items properly.
author
Andre Noll
<maan@systemlinux.org>
Sat, 24 Nov 2007 22:25:33 +0000
(23:25 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 24 Nov 2007 22:25:33 +0000
(23:25 +0100)
gui.c
patch
|
blob
|
history
diff --git
a/gui.c
b/gui.c
index
05d7b0b
..
2fddc2f
100644
(file)
--- a/
gui.c
+++ b/
gui.c
@@
-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);