From 6e411cc67d0c619574c5bf7b54e1b0a603c7c3c3 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 20 Dec 2017 14:15:56 +0100 Subject: core: fix commit 46004c39e266fe7 for real (erroneous quotes) Unfortunately, in my commit 48d9c8eb6eb07a, I fixed only half of the problems related to the functionality introduced by Stefan in commit 46004c39e266fe7. The lonely m (that was fixed) caused a parsing error, but forgotten where the single quotes around the depth value. These quotes simply causes the new functionality not to work. Again, the fix is simple: do not erroneously save quotes. And as the new functionality is pretty obscure (replanning a non-planned dive, and manually entering a gas switch depth), another bug that could go unnoticed for years. Signed-off-by: Jan Mulder --- core/save-git.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/save-git.c b/core/save-git.c index 46a4a24aa..27051ec39 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -158,7 +158,7 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive) if (cylinder->cylinder_use != OC_GAS) put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]); if (cylinder->depth.mm != 0) - put_milli(b, " depth='", cylinder->depth.mm, "m'"); + put_milli(b, " depth=", cylinder->depth.mm, "m"); put_string(b, "\n"); } } -- cgit v1.2.3-70-g09d2