summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-03-09 15:26:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-09 19:36:30 -0700
commit1e8c8283963131c3b3e5f61942c38caa7d321ed1 (patch)
treea4d8e24757869fc9ab8d97f951d695f76fa3e049 /save-git.c
parent2584b7e83132e5f63d94fff8fb7ffbc49259a83f (diff)
downloadsubsurface-1e8c8283963131c3b3e5f61942c38caa7d321ed1.tar.gz
Fix event saving in git format due to wrong argument order
Oops. Really stupid bug in event saving, resulting in bad event lines, that I didn't notice until I started trying to parse them. The argument order is a bit mixed up, which is partly why this happened. But considering that this is the worst bug I've hit so far in the saving code, I guess I shouldn't complain too much. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-git.c b/save-git.c
index 7b121a19b..c47638b8e 100644
--- a/save-git.c
+++ b/save-git.c
@@ -292,7 +292,7 @@ static void save_one_event(struct membuffer *b, struct event *ev)
show_index(b, ev->type, "type=", "");
show_index(b, ev->flags, "flags=", "");
show_index(b, ev->value, "value=", "");
- show_utf8(b, ev->name, " name=", "");
+ show_utf8(b, " name=", ev->name, "");
put_string(b, "\n");
}