From 0453262b4b90a659b8b0b19caba299f8e3862e61 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 16 Apr 2005 21:45:36 +0000 Subject: [PATCH] * view.c (enqueue_change): Made the algorithm independent of the memory layout (especially the order) of the fields in struct hexedit_change_node. --- src/ChangeLog | 3 +++ src/view.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ec280ca2f..b0d5311b6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -21,6 +21,9 @@ * view.c (display): Removed the call to the empty macros view_freeze() and view_thaw(). Deleted these macros, as they are otherwise unused. + * view.c (enqueue_change): Made the algorithm independent of the + memory layout (especially the order) of the fields in struct + hexedit_change_node. 2005-04-14 Roland Illig diff --git a/src/view.c b/src/view.c index 6f9021f28..44af0765a 100644 --- a/src/view.c +++ b/src/view.c @@ -375,7 +375,7 @@ enqueue_change (struct hexedit_change_node **head, node->next = curr; return; } - head = (struct hexedit_change_node **) curr; + head = &(curr->next); curr = curr->next; } *head = node;