From 36ce9cbb8df30b655bb7e9468c257dedb2fa1385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 8 Oct 1996 06:21:11 +0200 Subject: [PATCH] format error and copy_mapping bug fixed Rev: src/mapping.c:1.5 --- src/mapping.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mapping.c b/src/mapping.c index 9303695963..8436ab7af9 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -572,7 +572,7 @@ struct mapping *copy_mapping(struct mapping *m) LOOP(m) mapping_insert(n, &k->ind, &k->val); - return m; + return n; } struct mapping *merge_mappings(struct mapping *a, struct mapping *b, INT32 op) @@ -704,9 +704,10 @@ void describe_mapping(struct mapping *m,struct processing *p,int indent) LOOP(m) { - if(!d) + if(d) { my_strcat(",\n"); + } else { d=1; } for(d=0; d<indent; d++) my_putchar(' '); -- GitLab