aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/loadgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/loadgraph.c b/shell/loadgraph.c
index 22c44dae..8fbeef48 100644
--- a/shell/loadgraph.c
+++ b/shell/loadgraph.c
@@ -265,7 +265,7 @@ void load_graph_update(LoadGraph * lg, gint value)
return;
/* shift-right our data */
- for (i = 0; i < lg->size; i++) {
+ for (i = 0; i < lg->size - 1; i++) {
lg->data[i] = lg->data[i + 1];
}